Abu Bakra reported,

The Messenger of Allah ﷺ said, "A judge must not pass judgment between two parties while he is angry."In Hisham's version of the report, the wording is, "It is not proper for a judge to pass judgment between two parties while he is angry."

Ibn Majah 2316

Sahih

حدثنا هشام بن عمار ومحمد بن عبد الله بن يزيد وأحمد بن ثابت الجحدري قالوا حدثنا سفيان بن عيينة عن عبد الملك بن عمير أنه

سمع عبد الرحمن بن أبي بكرة عن أبيه

أن رسول الله ﷺ قال لا يقضي القاضي بين اثنين وهو غضبان قال هشام في حديثه لا ينبغي للحاكم أن يقضي بين اثنين وهو غضبان

ابن ماجه 2316صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Rulings
Chapter
A judge should not judge while angry
Numbering
Darussalam 2316
Ibn Majah 2316