Hadith
حَدَّثَنَا مُحَمَّدُ بْنُ كَثِيرٍ، أَخْبَرَنَا سُفْيَانُ، عَنْ عَبْدِ الْمَلِكِ بْنِ عُمَيْرٍ، حَدَّثَنَا عَبْدُ الرَّحْمَنِ بْنُ أَبِي بَكْرَةَ، عَنْ أَبِيهِ، أَنَّهُ كَتَبَ إِلَى ابْنِهِ قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " لاَ يَقْضِي الْحَكَمُ بَيْنَ اثْنَيْنِ وَهُوَ غَضْبَانُ " .
Abd al-Rahman bin Abi Bakrah reported on the authority of his father that he wrote to his son:The Messenger of Allah (ﷺ) said: A judge should not decide between the two while he is in anger
Sahih · Al-Albani
Sunan Abi Dawud 3589 ·Book 25, Hadith 19·Also available on sunnah.com·