Updated

Army Sgt. Bowe Bergdahl--held captive for five years after being captured by the Taliban in Afghanistan--has requested a pardon from President Obama, Fox News has learned from two senior US officials.

According to a well-placed source, Bergdahl thanked the president for rescuing him in May 2014 in a controversial exchange for five Taliban prisoners from Gitmo, in addition to asking for a pardon in the letter.

The Secretary of the Army was copied on the letter to the president, but the pardon was not formally requested through the military chain of command.

A Justice Department official confirms that it received a pardon petition from Bergdahl. Pentagon and White House officials would not immediately respond for comment.

OBAMA DEFENDS BERGDHAL TRADE DESPITE CHARGES

Reached by phone, Eugene R. Fidell, the attorney representing Sgt. Bergdahl, would not comment on the letter.

Last month, Sgt. Bergdahl’s court-martial trial was delayed for a second time and will now begin May 15 at Fort Bragg, NC.

Bergdahl faces charges of desertion and misbehavior before the enemy and could face up to life in prison.

President-elect Donald Trump called Bergdahl a “dirty, rotten traitor” early in his presidential campaign during a town hall in August 2015.

The Army general who investigated Bergdahl’s disappearance from a remote outpost in eastern Afghanistan on June 30, 2009 recommended that Bergdahl not receive jail time.

After being captured by the Taliban a short time after he left his post, Bergdahl was transferred to the Haqqani network, which top officials say is the most dangerous militant group in the region.

The State Department designated the Haqqani network, based in Pakistan, as a foreign terrorist organization in 2012.

The US officials have long accused Pakistan’s spy agency, Inter-Services Intelligence, of supporting the Haqqani network made up of Taliban fighters in both Afghanistan and Pakistan.

During the U.S. military’s intensive man-hunt for Bergdahl over a five-year period it was reported that up to six American soldiers died and others were wounded in the search, but these claims have been disputed.

Shortly after he was returned to US custody, President Obama’s national security advisor Susan Rice said Bergdahl served his country with “honor and distinction.”

Fox News' Matt Dean contributed to this report.