Abu Bakrah reported: The Messenger of Allah, peace and blessings be upon him, said, “The judge should not issue a ruling between two people while he is angry.”
Source: Sunan al-Tirmidhī 1334
Grade: Sahih (authentic) according to Al-Tirmidhi
عَنْ أَبِي بَكْرَةَ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ لَا يَحْكُمْ الْحَاكِمُ بَيْنَ اثْنَيْنِ وَهُوَ غَضْبَانُ
1334 سنن الترمذي كتاب الأحكام باب ما جاء لا يقضي القاضي وهو غضبان
3/13 المحدث الترمذي خلاصة حكم المحدث حسن صحيح في سنن الترمذي