The controversial decision concludes a fraught episode in U.S. military history. Bergdahl had been captured by the Taliban hours after leaving his post and held captive by the Haqqani network, allies of the Taliban, for five years. Several U.S. service members were injured searching for Bergdahl. Some critics claim that his actions led to the deaths of American troops but the prosecution did not provide evidence of this. Former President Barack Obama was heavily criticized after trading five Taliban terrorists for the soldier in May 2014.

Trump was particularly active on Twitter Friday, a day after his account was temporarily deactivated by a rogue customer-service employee. He lashed out at his former rival Hillary Clinton for allegedly rigging the Democratic primary against Bernie Sanders and the Justice Department for not investigating Clinton. He also promised to get revenge against ISIS after the group claimed credit for a terrorist attack in New York earlier this week.

But this is far from the first time Trump has attacked Bergdahl. He routinely calls Bergdahl a traitor and has lamented many times in speeches as a presidential candidate that he couldn’t simply be executed by firing squad.

“In the old days when we were strong and wise, we’d shoot a guy like that,” Trump said at a rally on Nov. 9, 2015.

Trump even incorporated Bergdahl into his presidential candidacy announcement on June 16, 2015, at Trump Tower in New York. He pointed to the prisoner exchange as evidence that Obama “doesn’t have a clue” and is “a bad negotiator.”

“He’s the one that did Bergdahl. We get Bergdahl, they get five killer terrorists that everybody wanted over there,” Trump said. “We get Bergdahl. We get a traitor. We get a no-good traitor, and they get the five people that they wanted for years, and those people are now back on the battlefield trying to kill us. That’s the negotiator we have.”

Trump’s contempt for Bergdahl has made many appearances on Twitter:

President Obama created a VERY BAD precedent by handing over five Taliban prisoners in exchange for Sgt. Bowe Bergdahl. Another U.S. loss!