Sunan Ibn Majah #2316
The Chapters on Rulings 13:9
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.”