When leaving for Tabuk, the Prophet (s) appointed Imam Ali (as) as his deputy in Madinah to protect against any uprising led by the Munafiqeen. That day he said to Imam Ali "You are to me as Harun was to Musa, except that there is no prophet after me."