“Let the judge (Qadi) not pass a judgment when he is angry.”
Sunan Ibn Majah Book 13, Hadith 9