Abdul-Rahman bin Samura reported,

The Messenger of Allah ﷺ said to me, "Abdul-Rahman bin Samura, do not ask for a position of authority. If you are given it after asking, you will be left to handle it on your own. But if you are given it without asking, you will be aided in carrying it out. And if you swear an oath, then see that something else is better, do what is better and make expiation for your oath."

Bukhari 7147

Sahih

حدثنا أبو معمر حدثنا عبد الوارث حدثنا يونس عن الحسن قال حدثني

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

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

البخاري 7147صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Rulings
Chapter
He who asks for leadership is left to it
Numbering
Darussalam 7147
Bukhari 7147