Robert Mugabe was granted immunity from prosecution as part of a deal that led to his resignation, sources said Thursday.