Abdul-Rahman bin Samura reported,

The Messenger of Allah ﷺ said, "Do not ask for a position of authority, for if you are given it without asking, you will be helped in carrying it out, but if you are given it after asking, you will be left to manage it on your own. And if you swear an oath, then see something better than it, do what is better and make expiation for your oath."Ashhal bin Hatim followed him in narrating this from Ibn Awn. He was also followed by Yunus, Simak bin Atiya, Simak bin Harb, Humayd, Qatada, Mansur, Hisham, and Rabi.

Bukhari 6722

Sahih

حدثنا محمد بن عبد الله حدثنا عثمان بن عمر بن فارس أخبرنا ابن عون عن الحسن

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

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

البخاري 6722صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Expiations for oaths
Chapter
Expiation before and after breaking an oath
Numbering
Darussalam 6722
Bukhari 6722