Federal authorities are investigating a weekend stabbing in Virginia to see whether the attacker may have been trying to behead a victim and whether the attack was inspired by the Islamic State terror group.

Wasil Farooqui, 20, was charged with two counts of aggravated malicious wounding in the stabbing attack Saturday that left two people wounded.

The FBI confirmed to Fox News it is investigating the dual stabbing alongside the Roanoke County Police Department. A source familiar with the case also told Fox News the FBI is investigating the attack as a possible terrorism-related incident.

"The FBI is working with the Roanoke County Police Department following the incident that occurred on Saturday evening,” said Adam Lee, special agent in charge of the FBI’s Richmond Division.

"While I cannot discuss details of the investigation at this time, I do want to reassure the community that we are working to determine the nature of the incident," Lee said.

According to ABC News, Farooqui had traveled to Turkey in the last year and may have tried to sneak into Syria to meet with ISIS militants.

Farooqui allegedly attacked a man and woman at an apartment complex in Roanoke, according to WDBJ-7. Both victims were seriously injured in the attack. Witnesses told authorities that Farooqi was yelling “Allah Akbar.”

Authorities believe that Farooqui may have been trying to behead the male victim, according to ABC News. Investigators said that there was no connection between Farooqui and the victims.

"The FBI is working with the Police Department following the incident that occurred on Saturday evening," Special Agent In Charge Adam Lee, head of the FBI’s Richmond field office told ABC News in a statement. “While I cannot discuss details of the investigation at this time, I do want to reassure the community that we are working to determine the nature of the incident."

Farooqui was being held without bond at the Western Virginia Regional Jail.

Fox News' Matt Dean contributed to this report.

Click for more from ABC News.