I think the resignation was at the end of a gun. Here the a link to the BBC story:
Zimbabwe’s President Robert Mugabe has resigned, parliament speaker Jacob Mudenda says.
A letter from Mr Mugabe said the decision was voluntary, Reuters news agency reports.
The surprise announcement came as lawmakers debated an impeachment motion against Mr Mugabe in a joint sitting of parliament.