Abdul-Rahman bin Samura reported,

The Prophet ﷺ said to me, "Abd al-Rahman bin Samura, do not ask for a position of leadership. If you are granted it after asking, you will be left to handle it on your own, but if you are granted it without asking, you will be aided in it. And when you swear an oath and then see something better than it, expiate for your oath and do what is better."

Azami 7605

Sahih

عن عبد الرحمن بن سمرة قال

قال لي النبي ﷺ: يا عبد الرحمن بن سمرة! لا تسأل الإمارة، فإنك إن أعطيتها عن مسألة وكلت إليها، وإن أعطيتها عن غير مسألة أعنت عليها، وإذا حلفت على يمين فرأيت غيرها خيرا منها فكفر عن يمينك، وأت الذي خير.

الأعظمي 7605صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Leadership
Section
Prohibition of seeking leadership and being eager for it
Numbering
Jami al-Kamil 7605 (2nd edition)
Azami 7605