It is narrated from Sayyiduna Imran bin Husayn (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "There is no Muslim judge but that two angels are with him, guiding him towards the truth as long as he does not want anything other than it. Then when he wants something other than the truth and deliberately does injustice, the two angels disown him and leave him to his own self."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 15693