It is narrated from Hazrat Abu Bakrah (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: It is not appropriate for a ruler to decide between two people while he is in a state of anger.
Hadith Referenceمسند احمد / أول مسند البصريين / 20393