Awf bin Malik reported,

The Prophet ﷺ said, "If you wish, I will tell you about leadership and what it really is."So I stood up and called out at the top of my voice three times, "What is it, Messenger of Allah?"He replied, "Its first is blame, its second is regret, and its third is punishment on the Day of Resurrection, except for one who rules justly. And how can a man rule justly when his own relatives are involved?"

Azami 7610

Sahih

عن عوف بن مالك

عن النبي ﷺ قال: إن شئتم أنبأتكم عن الإمارة وما هي؟ فقمت، فناديت بأعلى صوتي ثلاث مرات: وما هي يا رسول الله؟ قال: أولها ملامة، وثانيها ندامة، وثالثها عذاب يوم القيامة إلا من عدل، وكيف يعدل مع أقربيه؟

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