كتاب الجهاد والسير
32  
The Book of Jihad and Expeditions
(28)
Chapter: The Battle of Hunain
(28)
باب فِي غَزْوَةِ حُنَيْنٍ ‏‏
Sahih Muslim 1775 b

A version of the tradition has been transmitted through another chain of narrators. In this version the words uttered by the 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.
وَحَدَّثَنَاهُ إِسْحَاقُ بْنُ إِبْرَاهِيمَ، وَمُحَمَّدُ بْنُ رَافِعٍ، وَعَبْدُ بْنُ حُمَيْدٍ، جَمِيعًا عَنْ عَبْدِ، الرَّزَّاقِ أَخْبَرَنَا مَعْمَرٌ، عَنِ الزُّهْرِيِّ، بِهَذَا الإِسْنَادِ ‏.‏ نَحْوَهُ غَيْرَ أَنَّهُ قَالَ فَرْوَةُ بْنُ نُعَامَةَ الْجُذَامِيُّ ‏.‏ وَقَالَ ‏ "‏ انْهَزَمُوا وَرَبِّ الْكَعْبَةِ انْهَزَمُوا وَرَبِّ الْكَعْبَةِ ‏"‏ ‏.‏ وَزَادَ فِي الْحَدِيثِ حَتَّى هَزَمَهُمُ اللَّهُ قَالَ وَكَأَنِّي أَنْظُرُ إِلَى النَّبِيِّ صلى الله عليه وسلم يَرْكُضُ خَلْفَهُمْ عَلَى بَغْلَتِهِ ‏.‏
Reference : Sahih Muslim 1775b
In-book reference : Book 32, Hadith 95
USC-MSA web (English) reference : Book 19, Hadith 4386
  (deprecated numbering scheme)