Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

The Taliban found Pfc. Bowe Bergdahl walking alone, acting abnormally and cursing his countrymen before they captured him in Afghanistan in 2009, two men who were Taliban commanders at the time told NBC News on Thursday.

They said that Afghan locals first informed fighters about the soldier, and then the fighters rushed to capture him.

“Our people at the time couldn’t understand his language, but it was after he was shifted to a safe location, he said he wasn’t happy with his countrymen, but he didn’t intend to convert to Islam or join mujahideen (holy warriors),” one of the commanders said.

The commanders said that Taliban officers first thought it was a trick — perhaps an American soldier sent out alone to spy on the enemy.

“As we never saw their soldier patrolling alone … we would ask him how he managed to walk out of his base,” one of the commanders said. “He would tell us that it was personal issue.”

Let our news meet your inbox. The news and stories that matters, delivered weekday mornings. This site is protected by recaptcha

The descriptions filled in some of the details about the capture of Bergdahl, who was held by the Taliban for five years before he was released to U.S. forces. In exchange, five Taliban operatives were freed from the American prison at Guantanamo Bay, Cuba.

One of the two commanders quit the Taliban fighting U.S. forces in 2010. He joined another faction that is working to find a negotiated political solution to the Afghan conflict. He is now living in the United Arab Emirates.

The second of the two commanders is based in Helmand province in Afghanistan.

The commander who left in 2010 said that, at least through that time, Bergdahl did not convert to Islam.

“Think he had deserted his army with a mission and wanted to accept Islam, but our people didn’t trust him. That shattered his belief,” he said.

In the initial hours after Bergdahl was reported missing, on June 30, 2009, the United States mounted a furious search operation to find him. It included armed drones, teams of dogs, raids on suspected enemy hideouts and F-15 fighter jets for air cover.

The Taliban officials would not say where they took Bergdahl immediately after the capture, only that it was a safe location.

Later, according to Taliban sources, he was taken to the South Waziristan region of Pakistan. Later he was shifted to the forested, mountainous area of Shawal Valley, also in Pakistan.

Bergdahl was returned to American forces over the weekend and is recovering at an American military hospital in Germany. He was promoted twice in captivity and holds the rank of sergeant.

The trade for the five Taliban at Guantanamo has drawn outrage, primarily from Republicans. Former members of Bergdahl’s platoon have described him as a deserter who walked away from his outpost.

In addition, members of Congress have faulted the Obama administration — even suggesting that it broke the law — for failing to notify Congress before it executed the trade.

The administration has argued that it had to move quickly because Bergdahl’s health was deteriorating quickly.