Sunan Abi Dawud, Book 25, Hadith 19 (Abu Dawud 3590)

'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.