It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that when the Messenger of Allah (peace and blessings be upon him) set out for the Conquest of Makkah, he appointed Sayyiduna Abu Ruhm Kulthum bin al-Husayn al-Ghifari (may Allah be pleased with him) as his deputy over Madinah.
Related hadith on this topic