Narrated Abu Bakrah (RA):
I heard Allah's Messenger (ﷺ) say, "No judge should give judgement between two people while he is angry."[Agreed upon]. (RU)
Reference (RU): Bulugh al-Maram 1401 (RU)
In-book reference (RU): Book 14, Hadith 5 (RU)
English translation (RU): Book 14, Hadith 1401 (RU)