The Messenger of Allah ﷺ said, "Whoever takes on the office of judge, or is appointed to judge between people, has been slaughtered without a knife."
حدثنا نصر بن علي الجهضمي حدثنا الفضيل بن سليمان عن عمرو بن أبي عمرو عن سعيد المقبري
قال رسول الله ﷺ من ولي القضاء أو جعل قاضيا بين الناس فقد ذبح بغير سكين
[Its isnad is hasan]. Abu Dawud narrated it in Judgments, chapter "On Seeking Judgeship", hadith 3571, from Nasr bin Ali through the same route. Hakim graded it sahih, 4/91, and Dhahabi agreed with him. It has supporting witnesses.