122إِذْ هَمَّت طَّآئِفَتَانِ مِنكُمْ أَن تَفْشَلَا وَٱللَّهُ وَلِيُّهُمَا ۗ وَعَلَى ٱللَّهِ فَلْيَتَوَكَّلِ ٱلْمُؤْمِنُونَ
123وَلَقَدْ نَصَرَكُمُ ٱللَّهُ بِبَدْرٍ وَأَنتُمْ أَذِلَّةٌ ۖ فَٱتَّقُوا۟ ٱللَّهَ لَعَلَّكُمْ تَشْكُرُونَ
[122-123] Remember that two groups from among you were about to show cowardice,95 though Allah was there to succour them, and the Believers should trust in Allah alone. Indeed Allah had already succoured you in the battle of Badr when you were in a much weaker position, therefore you should refrain from showing ingratitude towards Allah: it is expected that you will be grateful now.
95The two groups were Banu Salmah and Banu Harithah who had wavered in their minds at the desertion of `Abdullah bin Ubayy, the hypocrite, and his 300 followers.