As the Quraysh set out for Badr in 2 AH, fearing Banu Bakr would attack Makkah in their absence, Iblis appeared to them in the form of Suraqa ibn Malik, a chieftain of Kinana, promising that Banu Bakr would not attack and that he would stand by them. When the armies met and he saw the angels descend, he fled, shoving al-Harith ibn Hisham aside, as Allah describes in [8:48]. The Prophet ﷺ said Shaytan was never more humiliated than on the Day of Badr.
All 1 events
وَإِذْ زَيَّنَ لَهُمُ ٱلشَّيْطَـٰنُ أَعْمَـٰلَهُمْ وَقَالَ لَا غَالِبَ لَكُمُ ٱلْيَوْمَ مِنَ ٱلنَّاسِ وَإِنِّى جَارٌۭ لَّكُمْ ۖ فَلَمَّا تَرَآءَتِ ٱلْفِئَتَانِ نَكَصَ عَلَىٰ عَقِبَيْهِ وَقَالَ إِنِّى بَرِىٓءٌۭ مِّنكُمْ إِنِّىٓ أَرَىٰ مَا لَا تَرَوْنَ إِنِّىٓ أَخَافُ ٱللَّهَ ۚ وَٱللَّهُ شَدِيدُ ٱلْعِقَابِ
“And [remember] when Satan made their deeds pleasing to them and said, "No one can defeat you today from amongst the people; and indeed, I am your protector!" But when the two armies faced each other, he turned his back around and said, "Indeed, I am disassociated from you. Indeed, I see what you do not see; indeed, I fear Allah. And Allah is severe in punishment."”
The post directly paraphrases this ayah (Q8:48) -- Shaytan's own words fleeing Badr after inciting the Quraysh, then disowning them.