A New Yorker who sent $67,000 to al-Qaida and pledged his support to the terror group was sentenced Tuesday to 15 years in prison by a judge who cited the defendant’s remorse and medical problems that make his incarceration more difficult.

Wesam El-Hanafi, who was born in Brooklyn, said he had spent the nearly five years since his arrest reflecting on his actions.