[Machine] A man from the tribe of Banu Sulaym passed by a group of the Prophet's companions, and he had with him some sheep. He greeted them, and they said, "He only greeted us to seek refuge." So, they attacked him and killed him, taking his sheep. They brought the sheep to the Messenger of Allah ﷺ , and Allah revealed the verse, "O you who have believed, when you go forth [to fight] in the cause of Allah, investigate" until the statement, "That is how you were before [i.e., prior to the revelation]."
مَرَّ رَجُلٌ مِنْ بَنِي سُلَيْمٍ عَلَى نَفَرٍ مِنْ أَصْحَابِ النَّبِيِّ ﷺ وَمَعَهُ غَنْمٌ فَسَلَّمَ عَلَيْهِمْ فَقَالُوا مَا سَلَّمَ عَلَيْكُمْ إِلَّا لِيَتَعَوَّذَ فَعَمِدُوا إِلَيْهِ فَقَتَلُوهُ وَأَخَذُوا غَنَمَهُ فَأَتَوْا بِهَا رَسُولَ اللهِ ﷺ فَأَنْزَلَ اللهُ ﷻ {يَا أَيُّهَا الَّذِينَ آمَنُوا إِذَا ضَرَبْتُمْ فِي سَبِيلِ اللهِ فَتَبَيَّنُوا} إِلَى قَوْلِهِ {كَذَلِكَ كُنْتُمْ مِنْ قَبْلُ}