Muwatta Imam Malik Book of Judgements, Hadith 2
Malik related to me from Yahya ibn Said from Said ibn al-Musayyab that Umar ibn al-Khattab had a dispute brought to him between a muslim and a jew. Umar saw that the right belonged to the jew and decided in his favour. The jew said to him, "By Allah! You have judged correctly.'' So Umar ibn al-Khattab struck him with a whip and said, "How can you be sure." The jew said to him, "We find that there is no judge who judges correctly but that there is an angel on his right side and an angel on his left side who guide him and give him success in the truth as long as he is with the truth. When he leaves the truth, they rise and leave him."
وَحَدَّثَنِي مَالِكٌ، عَنْ يَحْيَى بْنِ سَعِيدٍ، عَنْ سَعِيدِ بْنِ الْمُسَيَّبِ، أَنَّ عُمَرَ بْنَ الْخَطَّابِ، اخْتَصَمَ إِلَيْهِ مُسْلِمٌ وَيَهُودِيٌّ فَرَأَى عُمَرُ أَنَّ الْحَقَّ لِلْيَهُودِيِّ فَقَضَى لَهُ فَقَالَ لَهُ الْيَهُودِيُّ وَاللَّهِ لَقَدْ قَضَيْتَ بِالْحَقِّ . فَضَرَبَهُ عُمَرُ بْنُ الْخَطَّابِ بِالدِّرَّةِ ثُمَّ قَالَ وَمَا يُدْرِيكَ فَقَالَ لَهُ الْيَهُودِيُّ إِنَّا نَجِدُ أَنَّهُ لَيْسَ قَاضٍ يَقْضِي بِالْحَقِّ إِلاَّ كَانَ عَنْ يَمِينِهِ مَلَكٌ وَعَنْ شِمَالِهِ مَلَكٌ يُسَدِّدَانِهِ وَيُوَفِّقَانِهِ لِلْحَقِّ مَادَامَ مَعَ الْحَقِّ فَإِذَا تَرَكَ الْحَقَّ عَرَجَا وَتَرَكَاهُ .