The Prophet ﷺ said, "Whoever seeks the office of judging between the Muslims until he attains it, and then his justice outweighs his injustice, Paradise is his. But whoever's injustice outweighs his justice, the Fire is his."
حدثنا عباس العنبري حدثنا عمر بن يونس حدثنا ملازم بن عمرو حدثني موسى بن نجدة عن جده يزيد بن عبد الرحمن وهو أبو كثير قال
عن النبي ﷺ قال من طلب قضاء المسلمين حتى يناله ثم غلب عدله جوره فله الجنة ومن غلب جوره عدله فله النار
No references are available.
[Its chain is daif] Bayhaqi (10/88) narrated it from the hadith of Abu Dawud, with the same chain. Musa bin Najdah is unknown (Taqrib).