Huzaifa bin Yaman reported,

We were with the Messenger of Allah ﷺ when he said, "Count for me how many people pronounce Islam."We said, "Messenger of Allah, do you fear for us when we number between six hundred and seven hundred?"He replied, "You do not know, perhaps you will be tested."He said, "Then we were tested, until a man among us would not pray except in secret."In another wording, "We counted for him one thousand five hundred men, and we said, 'Should we fear when we are one thousand five hundred?'"

Azami 14542

Sahih

عن حذيفة، قال

كنا مع رسول الله ﷺ فقال: أحصوا لي كم يلفظ الإسلام قال: فقلنا: يا رسول الله، أتخاف علينا ونحن ما بين الستمائة إلى السبعمائة؟ قال: إنكم لا تدرون لعلكم أن تبتلوا قال: فابتلينا حتى جعل الرجل منا لا يصلي إلا سرا. وفي لفظ: فكتبنا له ألفا وخمسمائة رجل، فقلنا: نخاف ونحن ألف وخمسمائة.

الأعظمي 14542صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Names, kunyas, and titles
Section
Recording people's names in registers
Numbering
Jami al-Kamil 14542 (2nd edition)
Azami 14542