Sunan Ibn Majah, Book 13, Hadith 9 (Ibn Majah 2316)

It was narrated from 'Abdul-Malik bin 'Umair that he heard 'Abdur-Rahman bin Abu Bakrah (narrate) from his father that the Messenger of Allah (ﷺ) said:

“Let the judge (Qadi) not pass a judgment when he is angry.”