Sunan an Nasai
5406
Sahih+2

It was narrated that 'Abdur-Rahman bin Abi Bakrah said:"My father wrote to 'Ubaidullah bin Abi Bakrah - who was the judge of Sijistan - saying: 'Do not pass judgment between two people when you are angry, for I heard the Messenger of Allah [SAW] say: No one should pass judgment between two people when he is angry

SahihAbu Ghuddah
SahihAl-Albani