(O Messenger! Let not them grieve thee who vie one with another in the race to disbelief…) [5:41-47]. Abu Bakr Ahmad ibn al-Hasan al-Hiri informed us by dictation> Abu Muhammad, the chamberlain of Ibn Ahmad al-Tusi> Muhammad ibn Hammad al-Abiwardi> Abu Mu'awiyah> al-A'mash> 'Abd Allah ibn Murrah> al-Bara' ibn 'Azib who said: “One day, the Messenger of Allah, Allah bless him and give him peace, passed by a Jewish man who had just been flogged and had his face darkened with coal. He summoned the Jews and asked them: 'Is this what your Scripture decrees as punishment for the adulterer?' 'Yes!' they replied. He then summoned one of their doctors and asked him: 'I implore you by Allah who has sent the Torah to Moses, is this what your Scripture decrees as punishment for the adulterer'. He said: 'No! And if you had not implored me by Allah, I would not tell you. Our Scripture rules that the punishment of the adulterer is stoning. But it became widespread among our notables. Initially, when one of the notables committed adultery, we left him unpunished while we applied stoning on the communality in cases of adultery. Then we decided to look for a punishment that was applied on both the notables and communality of people. And so we agreed on darkening the face with coal and flogging to replace stoning'. The Messenger of Allah, Allah bless him and give him peace, said: 'O Allah! I am the first to reapply your command after they had suspended it'. And he ordered that the Jewish man be stoned. Allah, exalted is He, then revealed (O Messenger! Let not them grieve thee who vie one with another in the race to disbelief) up to His words (If this be given unto you, receive it…), they said: 'Go to Muhammad; if he directs you to flog the adulterer and darken his face with coal and apply flogging, then follow him. But do not follow him if he directs you to apply stoning on him'. Up to His words (Whoso judgeth not by that which Allah hath revealed: such are disbelievers) [5:44]. He said: 'This relates to the Jews'. Up to His words (Whoso judgeth not by that which Allah hath revealed: such are wrong-doers) [5:45]. He said: 'This relates to the Christians'.
Asbab Al-Nuzul by Al-Wahidi , trans. Mokrane Guezzou