The Prophet ﷺ said to me, "Abdul-Rahman bin Samura, do not ask for a position of authority, for 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 helped in carrying it out."
حدثنا محمد بن الصباح البزاز حدثنا هشيم أخبرنا يونس ومنصور عن الحسن
قال لي النبي ﷺ يا عبد الرحمن بن سمرة لا تسأل الإمارة فإنك إذا أعطيتها عن مسألة وكلت فيها إلى نفسك وإن أعطيتها عن غير مسألة أعنت عليها
Muslim narrated it, Oaths, chapter on the recommendation for one who swears an oath and then sees something better than it... etc, hadith no. 1652, from the hadith of Hushaym. Bukhari narrated it, Rulings, chapter on one who asks for authority being entrusted to it, hadith no. 7147, from the hadith of Yunus, similarly.