Updated

A judge has sentenced an Alabama man to 15 years in federal prison for plotting to carry out Islamic State-inspired attacks in the United States.

Prosecutors say 23-year-old Aziz Ihab Sayyed of Huntsville must spend the rest of his life on probation following his release.

Sayyed pleaded guilty in March to attempting to provide material support for the Islamic State terrorist group. He admitted buying bomb components last year with plans to attack police stations and Redstone Arsenal.

Authorities say he also tried to form a group to carry out domestic attacks. Prosecutors say Sayeed made the plans after watching videos by the Islamic State.

U.S. District Judge Abdul Kallon sentenced the North Carolina native during a hearing Wednesday. Sayeed was attending college in Alabama at the time of his arrest.