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.
bayhaqi:18079[Chain 1] Abū ʿAbdullāh al-Ḥāfiẓ > Abū al-ʿAbbās Muḥammad b. Yaʿqūb > Aḥmad b. Shaybān al-Ramlī > Sufyān b. ʿUyaynah [Chain 2] Abū Zakariyyā b. Abū Isḥāq And ʾAbū Bakr Aḥmad b. al-Ḥasan > Abū al-ʿAbbās > al-Rabīʿ b. Sulaymān > al-Shāfiʿī > Sufyān > ʿAmr b. Dīnār > Ibn ʿAbbās > Lammā Nazalat Hadhih al-Āyah In Yakun Minkum ʿIshrūn Ṣābirūn Yaghlibūā Miāʾatayn Fakatab ʿAlayhim

[Machine] "When this verse was revealed: 'If there are twenty of you who are patient, they will overcome two hundred,' Allah commanded them not to flee if the twenty were from the two hundred, so Allah revealed: 'Now Allah has eased the hardship upon you, knowing that there is weakness among you. If there are a hundred of you who are patient, they will overcome two hundred.' So He eased it for them and commanded them not to flee if a hundred were from the two hundred."  

البيهقي:١٨٠٧٩أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ ثنا أَبُو الْعَبَّاسِ مُحَمَّدُ بْنُ يَعْقُوبَ ثنا أَحْمَدُ بْنُ شَيْبَانَ الرَّمْلِيُّ ثنا سُفْيَانُ بْنُ عُيَيْنَةَ ح وَأَخْبَرَنَا أَبُو زَكَرِيَّا بْنُ أَبِي إِسْحَاقَ وَأَبُو بَكْرٍ أَحْمَدُ بْنُ الْحَسَنِ قَالَا ثنا أَبُو الْعَبَّاسِ أنبأ الرَّبِيعُ بْنُ سُلَيْمَانَ أنبأ الشَّافِعِيُّ أنبأ سُفْيَانُ عَنْ عَمْرِو بْنِ دِينَارٍ عَنِ ابْنِ عَبَّاسٍ ؓ قَالَ

لَمَّا نَزَلَتْ هَذِهِ الْآيَةُ {إِنْ يَكُنْ مِنْكُمْ عِشْرُونَ صَابِرُونَ يَغْلِبُوا مِائَتَيْنِ} فَكَتَبَ عَلَيْهِمْ أَنْ لَا يَفِرَّ الْعِشْرُونَ مِنَ الْمِائَتَيْنِ فَأَنْزَلَ اللهُ ﷻ {الْآنَ خَفَّفَ اللهُ عَنْكُمْ وَعَلِمَ أَنَّ فِيكُمْ ضَعْفًا فَإِنْ يَكُنْ مِنْكُمْ مِائَةٌ صَابِرَةٌ يَغْلِبُوا مِائَتَيْنِ} فَخَفَّفَ عَنْهُمْ وَكَتَبَ عَلَيْهِمْ أَنْ لَا يَفِرَّ مِائَةٌ مِنْ مِائَتَيْنِ  

رَوَاهُ الْبُخَارِيُّ فِي الصَّحِيحِ عَنْ عَلِيِّ بْنِ عَبْدِ اللهِ عَنْ سُفْيَانَ

See similar narrations below:

Collected by Bukhārī
bukhari:4653Yaḥyá b. ʿAbdullāh al-Sulamī > ʿAbdullāh b. al-Mubārak > Jarīr b. Ḥāzim > al-Zubayr b. Khirrīt > ʿIkrimah > Ibn ʿAbbās

When the Verse:--'If there are twenty steadfast amongst you (Muslims), they will overcome twohundred (non-Muslims).' was revealed, it became hard on the Muslims when it became compulsory that one Muslim ought not to flee (in war) before ten (non-Muslims). So (Allah) lightened the order by revealing: '(But) now Allah has lightened your (task) for He knows that there is weakness in you. So if there are of you one-hundred steadfast, they will overcome (two-hundred (non-Muslims).' (8.66) So when Allah reduced the number of enemies which Muslims should withstand, their patience and perseverance against the enemy decreased as much as their task was lightened for them.  

البخاري:٤٦٥٣حَدَّثَنَا يَحْيَى بْنُ عَبْدِ اللَّهِ السُّلَمِيُّ أَخْبَرَنَا عَبْدُ اللَّهِ بْنُ الْمُبَارَكِ أَخْبَرَنَا جَرِيرُ بْنُ حَازِمٍ قَالَ أَخْبَرَنِي الزُّبَيْرُ بْنُ خِرِّيتٍ عَنْ عِكْرِمَةَ عَنِ ابْنِ عَبَّاسٍ ؓ قَالَ

لَمَّا نَزَلَتْ {إِنْ يَكُنْ مِنْكُمْ عِشْرُونَ صَابِرُونَ يَغْلِبُوا مِائَتَيْنِ} شَقَّ ذَلِكَ عَلَى الْمُسْلِمِينَ حِينَ فُرِضَ عَلَيْهِمْ أَنْ لاَ يَفِرَّ وَاحِدٌ مِنْ عَشَرَةٍ فَجَاءَ التَّخْفِيفُ فَقَالَ رالآنَ خَفَّفَ اللَّهُ عَنْكُمْ وَعَلِمَ أَنَّ فِيكُمْ ضُعْفًا فَإِنْ يَكُنْ مِنْكُمْ مِائَةٌ صَابِرَةٌ يَغْلِبُوا مِائَتَيْنِ} قَالَ فَلَمَّا خَفَّفَ اللَّهُ عَنْهُمْ مِنَ الْعِدَّةِ نَقَصَ مِنَ الصَّبْرِ بِقَدْرِ مَا خُفِّفَ عَنْهُمْ