The Prophet ﷺ said, "We will never appoint, or we do not appoint, to our work anyone who seeks it."
حدثنا أحمد بن حنبل حدثنا يحيى بن سعيد حدثنا قرة بن خالد حدثنا حميد بن هلال حدثني أبو بردة قال قال
النبي ﷺ لن نستعمل أو لا نستعمل على عملنا من أراده
Bukhari narrated it in the book on calling apostates back to Islam, chapter on the ruling regarding the male and female apostate and calling them back to Islam, no. 6923, and Muslim in the book on leadership, chapter on the prohibition of seeking leadership and craving it, no. 1824, from the hadith of Yahya Qattan, by this route. It is also found in Musnad Ahmad, 4/409, in full.