Sahih Muslim 1775b
A version of the tradition has been transmitted through another chain of narrators. In this version the words uttered by Prophet ﷺ (after he had thrown the pebbles in the face of the enemy) are reported as:" By the Lord of the Ka'ba, they have been defeated." And there is at the end the addition of the words:" Until Allah defeated them" (and I imagine) as if I saw the Prophet of Allah ﷺ chasing them on his mule.
وَحَدَّثَنَاهُ إِسْحَاقُ بْنُ إِبْرَاهِيمَ، وَمُحَمَّدُ بْنُ رَافِعٍ، وَعَبْدُ بْنُ حُمَيْدٍ، جَمِيعًا عَنْ عَبْدِ، الرَّزَّاقِ أَخْبَرَنَا مَعْمَرٌ، عَنِ الزُّهْرِيِّ، بِهَذَا الإِسْنَادِ . نَحْوَهُ غَيْرَ أَنَّهُ قَالَ فَرْوَةُ بْنُ نُعَامَةَ الْجُذَامِيُّ . وَقَالَ " انْهَزَمُوا وَرَبِّ الْكَعْبَةِ انْهَزَمُوا وَرَبِّ الْكَعْبَةِ " . وَزَادَ فِي الْحَدِيثِ حَتَّى هَزَمَهُمُ اللَّهُ قَالَ وَكَأَنِّي أَنْظُرُ إِلَى النَّبِيِّ ﷺ يَرْكُضُ خَلْفَهُمْ عَلَى بَغْلَتِهِ .