A federal judge in Kansas on Monday halted the scheduled firing-squad execution of former Army Maj. Nidal Hasan, three days before it was to be carried out at Fort Hood in Texas, USA Today, The Associated Press, and CNBC reported.

U.S. District Judge Anthony Mattivi granted the stay after a hearing at the Robert J. Dole U.S. Courthouse in Kansas City, Kansas, according to USA Today and The Kansas City Star. Hasan, a former Army psychiatrist, was convicted in 2013 of 13 counts of premeditated murder for a 2009 shooting at Fort Hood that killed 13 people and wounded 32 others, USA Today and CNBC reported. He had been scheduled to be executed on Dec. 3, USA Today reported. The Associated Press said Thursday’s execution would have been the U.S. military’s first since 1961. USA Today and The Guardian reported it also would have been the first U.S. military firing squad since 1945.

Mattivi ordered Hasan to file a verified petition for a writ of habeas corpus by June 1, 2027, according to the federal court docket and USA Today. In the ruling, Mattivi wrote that “without a stay the Army will execute him before any court can consider his claims” and that “Hasan did not delay in exercising his right to habeas review,” USA Today reported. Mattivi wrote that “the government has a strong interest in carrying out a sentence affirmed at every level of review, and the victims and their families have waited seventeen years,” but that a firm filing deadline “still allows one full round of federal review,” according to USA Today.

President Donald Trump approved the execution in October, calling Hasan “a very bad and evil man,” USA Today, CNBC, and The Guardian reported. Defense Secretary Pete Hegseth had said the execution would be livestreamed; Trump later canceled that plan after widespread criticism, the same outlets reported. Hasan is being held at the U.S. Disciplinary Barracks at Fort Leavenworth, Kansas, USA Today and CNBC reported.

The Justice Department filed an appeal of the stay on Monday, court records and USA Today reported.