Other sources had previously said that Stanekzai was supposed to be tried in a military court.
According to sources, the purpose of the trial was to send a warning message to other officials who are dissatisfied with Taliban leader Hibatullah Akhundzada's decrees, especially regarding the ban on women's education.
Many Kabul-based Taliban officials oppose dozens of Kandahar decrees.
According to information provided by these sources to Afghanistan International, Mullah Baradar, Sirajuddin Haqqani, and Mawlawi Yaqoob asked Hibatullah Akhundzada to pardon Stanekzai, but the Taliban leader strongly opposed this request and insisted that he should be imprisoned.
However, after extensive consultations and indirect interventions by some senior Taliban officials, Stanekzai finally boarded the plane and left Afghanistan for the United Arab Emirates for the time being, the sources said.
However, he and his supporters within the Taliban government are trying to pave the way for a return and reconciliation, sources say.
In an audio file provided to Afghanistan International on Monday, the Taliban's deputy foreign minister said that he had been "infected with a coronavirus-like disease" and that was why he had "gone to recuperate".