The man who faces federal charges over a New York subway bombing mocked President Donald Trump on social media on the morning of the December 11 attack, according to court documents.
"Trump you failed to protect your nation," Akayed Ullah, a 27-year-old Bangladeshi immigrant, wrote on Facebook, according to a 10-page criminal complaint made public on December 12.
Ullah was given a five-count indictment on December 12 including providing material support to a terrorist group, use of a weapon of mass destruction, and three bomb-related counts.
The complaint also said Ullah told law enforcement officers at the hospital where he was taken with burn injuries to the body and hands: "I did it for the Islamic State."
Three people were injured after the attacker's pipe bomb partially exploded in a subway passage near Times Square on December 11.
During a search of his Brooklyn apartment, investigators recovered a passport with the words "O America, die in rage" scrawled in it, according to the complaint.
Ullah was expected to appear before a magistrate judge, though it was not immediately clear if he was fit to go to court.
The federal charges carry a maximum sentence of life in prison.