Zimbabwe's former President Robert Mugabe has been granted immunity from prosecution and assured his safety will be protected in his home country as part of a deal that led to his resignation, sources say.
Mr Mugabe led Zimbabwe from independence in 1980 but stepped down on Tuesday after the army seized power and the ruling party turned against him. Emmerson Mnangagwa, the former Vice President, is set to be sworn in as President on Friday.
A government source said Mr Mugabe, who is 93, told negotiators he wanted to die in Zimbabwe and had no plans to live in exile.
"It was very emotional for him and he was forceful about it," said the source, who is not authorised 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 travelling abroad when he wants to or has to," the source said.
- Zimbabwean expats celebrate the end of Mugabe
- Parties on the streets as Zimbabwe President Robert Mugabe resigns
Mr Mugabe's rapid downfall after 37 years in power was triggered by a battle to succeed him that pitted Mr Mnangagwa against Mr Mugabe's wife Grace.
Mr Mugabe resigned on Tuesday as Parliament began a process to impeach him, sparking wild celebrations in the streets.
"The outgoing President is obviously aware of the public hostility to his wife, the anger in some circles about the manner in which she conducted herself and approached ZANU-PF party politics," a second source said.
"In that regard, it became necessary to also assure him that his whole family, including the wife, would be safe and secure."
Mr Mugabe had clung on to power precariously for a week after the military intervened. He angered many Zimbabweans when he did not resign in a televised national address on Sunday as many had anticipated.
The government source said the tipping point for him was the realisation that he would be impeached and ousted in an undignified way.
"When the process started, he then realised he had lost the party," the source said.
Mr Mugabe will receive a retirement package that includes a pension, housing, holiday and transport allowance, health insurance, limited air travel and security in accordance with Zimbabwean law.