كتاب المقدمات
The Book of Miscellany
(81)
Chapter: Undesirability of Aspiring for Office
(81)
- باب النهى عن سؤال الإمارة واختيار ترك الولايات إذا لم يتعين عليه أو تدع حاجة اليه
Riyad as-Salihin 673
'Abdur-Rahman bin Samurah (May Allah be pleased with him) reported:
The Messenger of Allah (ﷺ) said to me, "Do not ask for position of authority. If you are granted this position without asking for it, you will be helped (by Allah) in discharging its responsibilities; but if you are given it as a result of your request, you will be left alone as its captive. If you take an oath to do something and then find a better alternative, you should adopt the latter and expiate for your oath."

[Al-Bukhari and Muslim].

وعن أبى سعيد عبد الرحمن بن سمرة رضي الله عنه ، قال‏:‏ قال رسول الله صلى الله عليه وسلم ، ‏"‏يا عبد الرحمن بن سمرة‏:‏ لا تسأل الإمارة، فإنك إن أعطيتها عن غير مسألة أعنت عليها، وإن أعطيتها عن مسألةٍ وكلت إليها، وإذا حلفت على يمين ، فرأيت غيرها خيراً منها، فأت الذى هو خير ، وكفر عن يمينك” ‏(‏‏(‏متفق عليه‏)‏‏)‏ ‏.‏
Reference : Riyad as-Salihin 673
In-book reference : Introduction, Hadith 673