Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:9:25

Allah has already given you victory in many regions and ˹even˺ on the day of Hunayn, when your great number pleased you, but it did not avail you at all, and the earth was confining for you with its vastness; then you turned back, fleeing.  

God has already helped you on many fields, of battle, such as Badr, and ˹against˺ Qurayza and al-Nadīr, and, remember, on the day of Hunayn — a valley between Mecca and Tā’if; that is, ˹remember˺ the day on which you fought Hawāzin — this was in Shawwāl in year 8 ˹of the Hijra˺, when (idh substitutes for yawma, ‘the day’) your vast numbers were pleasing to you, such that you were saying, ‘We shall not be defeated today, not on account of our being few’: and they numbered 12,000, while the disbelievers were 4,000); but it availed you nothing and the earth, for all its breadth (bi-mā rahubat, the mā refers to the verbal noun, in other words ˹understand it as being˺ ma‘a rahbihā, ‘despite its breadth’), it was straitened for you, such that you could not find a place in which you felt secure, because of the severe fear that afflicted you; then you turned back, retreating, fleeing: the Prophet (s), however, on his white mule remained firm, with only al‘Abbās by his side, while Abū Sufyān was charging on his mount.
القرآن:٩:٢٥

لَقَدْ نَصَرَكُمُ اللَّهُ فِي مَوَاطِنَ كَثِيرَةٍ ۙ وَيَوْمَ حُنَيْنٍ ۙ إِذْ أَعْجَبَتْكُمْ كَثْرَتُكُمْ فَلَمْ تُغْنِ عَنْكُمْ شَيْئًا وَضَاقَتْ عَلَيْكُمُ الْأَرْضُ بِمَا رَحُبَتْ ثُمَّ وَلَّيْتُمْ مُدْبِرِينَ  

{لقد نصركم الله في مواطن} للحرب {كثيرة} كبدر وقريظة والنضير {و} اذكر {يوم حنين} واد بين مكة والطائف أي يوم قتالكم فيه هوازن وذلك في شوّال سنة ثمان {إذ} بدل من يوم {أعجبتكم كثرتكم} فقلتم لن نُغلب اليوم من قلة وكانوا اثني عشر ألفا والكفار أربعة آلاف {فلم تغن عنكم شيئا وضاقت عليكم الأرض بما رحبت} ما مصدرية أي مع رحبها أي سعتها فلم تجدوا مكانا تطمئنون إليه لشدة ما لحقكم من الخوف {ثم وليتم مدبرين} منهزمين وثبت النبي ﷺ على بغلته البيضاء وليس معه غير العباس وأبو سفيان آخذ بركابه.