A Minnesota man has been sentenced to 15 years in prison for charges connected to a plot to join the Islamic State group in Syria.

Hamza Ahmed was sentenced Tuesday in U.S. District Court in Minnesota. He's one of nine friends in Minnesota's large Somali community who are being sentenced this week for their plot to join the militant group.

Before he was sentenced, the 21-year-old Ahmed told the court he was grateful he was pulled off an airplane in New York in November 2014 as he was about to head overseas.

Ahmed admitted he's not completely changed, but told the judge he's trying.

Ahmed pleaded guilty to conspiracy to provide material support to a foreign terrorist organization. He also pleaded guilty to financial aid fraud. Five others await sentencing.