Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) narrates from the Prophet (peace and blessings be upon him) that he (peace and blessings be upon him) said: "There is no ruler who judges between people." He mentioned the hadith.
Masruq (may Allah have mercy on him) says: That I judge one day with truth is more beloved to me than fighting for a year in the path of Allah.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب آداب القاضي / 20172