It does come from Nelson Mandela being released from prison to become South African president despite many remembering that he died in custody. The confusion may have been caused by the 1987 movie 'Cry Freedom' where that is exactly what happens to anti-apartheid campaigner Steve Biko.