The Prophet (ﷺ) appointed Ubn Umm Makthum as a governor of Medina (in his absence) twice. Sunan Abi Dawud Book 20, Hadith 4