Chattanooga shooting
Members of the FBI Evidence Response Team continue to investigate the shooting at the Armed Forces Career Center and National Guard Recruitment Office in Chattanooga, Tennessee, on July 18, 2015. Getty Images

The gunman accused of murdering five U.S. service personnel in Tennessee texted his friend a link to an Islamic verse the night before the attack, according to a report.

The text from Mohammod Youssuf Abdulazeez, 24, contained a link to Hadith 38 that included the line: "Whosoever shows enmity to a friend of mine, then I have declared war against him," according to the Reuters news agency.

The friend, who requested anonymity, received the text just after 10 p.m. on the night before the shooting. He said he thought nothing of it at the time, but now wonders if "it may have been his way of telling me something."

Four U.S. Marines were killed on July 16 after the suspect, a Kuwait-born naturalized U.S. citizen, sprayed gunfire at a recruitment center in Chattanooga before driving six miles to a Navy and Marine reserve centre where he shot and killed the victims.

Three other people were injured, including a sailor who died of his wounds in hospital on July 18.

Abdulazeez, who was later killed in a shootout with police, also spoke out against the Israeli bombing campaign in Gaza and the civil war in Syria to his friends after a trip to Jordan in 2014.

"That trip was eye-opening for him. He learned a lot about the traditions and culture of the Middle East," one friend told Reuters. "He felt Jordan, Qatar, Saudi Arabia were not doing enough to help, and that they were heavily influenced by the United States."

Another friend said: "He had always talked about it, but I'd say his level of understanding and awareness really rose after he came back."

After returning from his trip, Abdulazeez reportedly purchased three assault rifles on the Internet and used them for target practice.

Earlier, the U.S. Navy released a statement confirming the death of Navy Petty Officer 2nd Class Randall Smith, who succumbed to his injuries in hospital. "Logistics Specialist 2nd Class Randall Smith succumbed to wounds received in the July 16 shooting at the Navy Operational Support Center (NOSC) in Chattanooga, Tennessee July 18 at 2:17am," it said.

U.S. authorities are investigating the attack as an act of domestic terrorism.