Buraida reported God’s Messenger as saying, "Qadis are of three types, one of whom will go to paradise and two to hell. The one who will go to paradise is a man who knows what is right and gives judgment accordingly; but a man who knows what is right and acts tyrannically in his judgment will go to hell, and a man who gives judgment for people when he is ignorant will go to hell.”
Anas reported God’s Messenger as saying, “If anyone desires and asks for the office of qadi he will be left to his own devices, but if anyone is forced to accept it God will send down an angle who will direct him aright.”
Abu Huraira reported God’s Messenger as saying, “If anyone seeks the office of qadi among Muslims till he gets it and his justice prevails over his tyranny, he will go to paradise; but the man whose tyranny prevails over his justice will go to hell."
Abu Huraira reported God’s Messenger as saying, “He who has been appointed a qadi among the people has been killed without a knife.”*
Ahmad, Tirmidhi, Abu Dawud and Ibn Majah transmitted it.
*This phrase has troubled commentators. Perhaps the best explanation is that he will have reason to repent of his manner of life, for there are many traditions which express disapproval of undertaking such an office. A somewhat ingenious explanation is that his evil characteristics must be cut away, this being a kind of slaughter.