Hazrat Abu Mūsa al-Ash‘ari reported: “I and two of my paternal cousins entered upon the Prophet ﷺ”. One of them said: “O Messenger of Allah, appoint us rulers over some of what Allah, the Almighty, has entrusted you with.” The other said the same. The Prophet ﷺ said: “By Allah! We do not entrust this post to anyone who seeks it or is keen to attain it.”
(Bukhari and Muslim]
The Hadīth contains a prohibition of giving authority to whoever seeks it or has greed for it. When the two men asked the Prophet ﷺto appoint them rulers over some of what Allah entrusted him with, he said: “By Allah! We do not entrust this affair to anyone who seeks it or is keen to attain it.” i.e. we do not give authority to anyone who asks for it or is keen to have it. That is because the one who seeks it or has greed for it aims at giving himself authority, not at bringing reform. Since such a person could be liable to such an accusation, the Prophet ﷺforbade giving authority to the one who seeks it, saying: “By Allah! We do not entrust this post to anyone who seeks it or is keen to attain it.”
One should carry out a position of responsibility on the basis of truth and justice. In another hadith, Hazrat Abu Hurairah relates that the Messenger of Allah ﷺ said: “When positions of authority are given to people who are not qualified for them, then await the Hour.” (Bukhari)