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:13069Abū al-Ḥusayn b. Bishrān al-ʿAdl> Abū al-Ḥasan ʿAlī b. Muḥammad b. Aḥmad al-Miṣrī > Ibn Abū Maryam > al-Firyābī > Sufyān > al-Aʿmash > Abū Wāʾil > Ḥudhayfah

[Machine] The Messenger of Allah ﷺ said, "Write down for me the one who memorizes Islam among the people, and for him write down 1,500 men." So I said, "Should I worry when we are 1,500 men?" Indeed, I have seen us being tested to the point that a man among us prays alone, fearing."  

البيهقي:١٣٠٦٩أَخْبَرَنَا أَبُو الْحُسَيْنِ بْنُ بِشْرَانَ الْعَدْلُ بِبَغْدَادَ أنا أَبُو الْحَسَنِ عَلِيُّ بْنُ مُحَمَّدِ بْنِ أَحْمَدَ الْمِصْرِيُّ ثنا ابْنُ أَبِي مَرْيَمَ ثنا الْفِرْيَابِيُّ ثنا سُفْيَانُ عَنِ الْأَعْمَشِ عَنْ أَبِي وَائِلٍ عَنْ حُذَيْفَةَ قَالَ

قَالَ رَسُولُ اللهِ ﷺ اكْتُبُوا لِي مَنْ لَفِظَ الْإِسْلَامَ مِنَ النَّاسِ فَكُتِبَ لَهُ أَلْفٌ وَخَمْسُمِائَةِ رَجُلٍ فَقُلْتُ أَنَخَافُ وَنَحْنُ أَلْفٌ وَخَمْسُمِائَةِ رَجُلٍ فَلَقَدْ رَأَيْتُنَا ابْتُلِينَا حَتَّى إِنَّ الرَّجُلَ مِنَّا يُصَلِّي وَحْدَهُ خَائِفًا  

رَوَاهُ الْبُخَارِيُّ فِي الصَّحِيحِ عَنْ مُحَمَّدِ بْنِ يُوسُفَ الْفِرْيَابِيِّ قَالَ وَقَالَ أَبُو حَمْزَةَ عَنِ الْأَعْمَشِ فَوَجَدْنَاهُمْ خَمْسَمِائَةٍ وَقَالَ أَبُو مُعَاوِيَةَ مَا بَيْنَ السِّتِمِائَةِ إِلَى سَبْعِمِائَةٍ

See similar narrations below:

Collected by Bukhārī
bukhari:3060Muḥammad b. Yūsuf > Sufyān > al-Aʿmash > Abū Wāʾil > Ḥudhayfah

The Prophet ﷺ said (to us), " List the names of those people who have announced that they are Muslims." So, we listed one thousand and five hundred men. Then we wondered, "Should we be afraid (of infidels) although we are one thousand and five hundred in number?" No doubt, we witnessed ourselves being afflicted with such bad trials that one would have to offer the prayer alone in fear.  

Narrated Al-Aʿmash: "We (listed the Muslims and) found them five hundred." And Abu Muawiya said, "Between six hundred to seven hundred."
البخاري:٣٠٦٠حَدَّثَنَا مُحَمَّدُ بْنُ يُوسُفَ حَدَّثَنَا سُفْيَانُ عَنِ الأَعْمَشِ عَنْ أَبِي وَائِلٍ عَنْ حُذَيْفَةَ ؓ قَالَ

قَالَ النَّبِيُّ ﷺ اكْتُبُوا لِي مَنْ تَلَفَّظَ بِالإِسْلاَمِ مِنَ النَّاسِ فَكَتَبْنَا لَهُ أَلْفًا وَخَمْسَمِائَةِ رَجُلٍ فَقُلْنَا نَخَافُ وَنَحْنُ أَلْفٌ وَخَمْسُمِائَةٍ فَلَقَدْ رَأَيْتُنَا ابْتُلِينَا حَتَّى إِنَّ الرَّجُلَ لَيُصَلِّي وَحْدَهُ وَهْوَ خَائِفٌ  

حَدَّثَنَا عَبْدَانُ عَنْ أَبِي حَمْزَةَ عَنِ الأَعْمَشِ فَوَجَدْنَاهُمْ خَمْسَمِائَةٍ قَالَ أَبُو مُعَاوِيَةَ مَا بَيْنَ سِتِّمِائَةٍ إِلَى سَبْعِمِائَةٍ