Former President Robert Mugabe was granted immunity from prosecution and was assured that his safety in Zimbabwe would be protected, Reuters reported. The announcement was part of a deal that led to the 93-year-old's resignation, sources told Reuters.

Mugabe, who had led Zimbabwe since its independence from Great Britain in 1980, resigned Tuesday after the army seized power and the ruling party turned against him. Emmerson Mnangagwa, the former vice president sacked by Mugabe earlier this month, is set to be sworn in as president on Friday.

A government source said Mugabe told negotiators he wanted to die in Zimbabwe and had no plans to live in exile, Reuters reported.

“It was very emotional for him and he was forceful about it,” said the source, who is not authorized to speak on the details of the negotiated settlement.

“For him it was very important that he be guaranteed security to stay in the country … although that will not stop him from traveling abroad when he wants to or has to,” the source told Reuters.