A federal judge in the United States has temporarily stopped the execution of Nidal Hasan, the former army psychiatrist convicted of killing 13 people in a 2009 shooting at the Fort Hood military base in Texas, according to Al Jazeera.

US District Judge Anthony Mattivi on Monday granted Hasan's application for a stay. The execution, which was to be carried out by firing squad, had been scheduled for Thursday.

In his ruling, the judge reasoned that without his intervention, the Army would put Hasan to death before any court had the chance to examine the claims he intends to raise.

Habeas corpus challenge

Hasan has signalled that he will file a habeas corpus petition contesting the legality of his detention and planned execution. He was represented at Monday's hearing by lawyers from the American Civil Liberties Union (ACLU) and its Capital Punishment Project.

His legal team argued that the 62 days between President Donald Trump's approval of the execution and the scheduled date did not allow enough time to prepare such a case. The ACLU lawyers told the court that a proper petition would require at least six months.

According to the ruling, the defence is expected to argue that Trump and Defense Secretary Pete Hegseth used "unlawful command influence" and "bigoted animus" to speed up the execution.

Hasan has also claimed that the administration did not follow military regulations, saying he was informed of Thursday's execution date three days after the order was signed, and without a chaplain or lawyer present.

Judge Mattivi noted that at least one of these claims emerged after the military review process had concluded, meaning no military court could now consider it.

"We are a nation of laws. Those laws protect everyone who comes before a court," Mattivi wrote.

He added that the rule of law applies even when the public might prefer a different outcome, and that cases such as this one test it most.

Government questions timing

Lawyers for the US government questioned why Hasan was only now seeking habeas relief. Assistant US Attorney Jared Maag told the hearing that the challenge had come at the last moment, despite Hasan having had considerable time to mount one.

It emerged in early October that Trump had approved the execution, which would be the first carried out by the US military since 1961.

Livestream controversy

The case has drawn wider controversy in recent weeks. On October 7, Hegseth pledged that the execution would be made public, and the Department of Defense later said it would be livestreamed.

The plan prompted a backlash. Religious leaders argued that broadcasting the killing would undermine the dignity of human life, while other critics warned that the footage could be exploited as propaganda by America's adversaries. Concerns were also raised about executing Hasan, who is paralysed from the waist down and uses a wheelchair.

Trump eventually dropped the livestream plan.

The 2009 attack

Hasan has admitted opening fire on soldiers at Fort Hood on November 5, 2009, shortly before he was due to be deployed to Afghanistan. The attack left 13 people dead and more than 30 wounded.

A military court convicted him of murder and attempted murder in 2013 and sentenced him to death. The US Supreme Court had earlier rejected an appeal against his conviction.

Hasan is currently held at the Fort Leavenworth military base in Kansas. The stay is temporary, and it remains unclear how long the court review will take.

This story was prepared by the Hamasta Newsdesk with AI assistance, based on reporting by Al Jazeera. Read the original report. Photo: Al Jazeera.