The Prophet (peace and blessings be upon him) said: "A judge should not judge between two parties while he is angry."