(7) باب مَا يُكْرَهُ مِنَ الْحِرْصِ عَلَى الإِمَارَةِ
Narrated Abu Musa:
Two men from my tribe and I entered upon the Prophet. One of the two men said to the Prophet, "O Allah's Messenger (ﷺ)! Appoint me as a governor," and so did the second. The Prophet (ﷺ) said, "We do not assign the authority of ruling to those who ask for it, nor to those who are keen to have it."
Reference: Sahih al-Bukhari 7149
In-book reference: Book 93, Hadith 13
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 9, Book 89, Hadith 263