It is narrated from Hazrat Abu Bakrah (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: No ruler should judge between two people while he is angry.