Abu Musa Ash'ari (May Allah be pleased with him) reported:
I called on the Prophet (ﷺ) with two of my cousins. One of them said to him: "O Messenger of Allah (ﷺ), appoint me governor of some land over which Allah has given you authority." The other also requested for something of the same nature. Messenger of Allah (ﷺ) said, "By Allah we do not appoint someone to this post who seeks it or someone who contends for it."[Al-Bukhari and Muslim].
Arabic/English book reference: Book 1, Hadith 680