Nidal Hasan, who is scheduled to die by firing squad on Dec. 3 after his conviction for killing 13 people and wounding 32 others at Fort Hood, Texas, in 2009, is expected to file a habeas corpus petition within days that could delay his execution, his lawyer John Galligan, told ABC News on Tuesday.

A habeas corpus petition invokes a legal mechanism designed to protect people from unlawful detention.

The process can delay executions for years, even if the legal challenges ultimately prove unsuccessful.