Anas bin Malik reported,

The verses "People, fear your Lord. The convulsion of the Hour is a tremendous thing" up to "but the punishment of Allah is severe" [Hajj 22:1–2] were revealed to the Prophet ﷺ while he was on a journey. He raised his voice with them until his companions gathered around him, and he said, "Do you know what day this is? It is the day when Allah will say to Adam, 'Rise and send forth a company to the Fire. Out of every thousand, nine hundred and ninety-nine to the Fire and one to the Garden.'"This weighed heavily upon the Muslims, so the Prophet ﷺ said, "Be steadfast, keep close to the mark, and take heart. By the One in whose hand my soul rests, among all mankind you are but like a mole on the side of a camel, or like the small mark on a beast's foreleg. With you there are two creations, and they have never joined anything without outnumbering it, Yajuj and Majuj, and those who have perished among the disbelievers of the jinn and mankind."

Azami 8340

Sahih

عن أنس قال

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

الأعظمي 8340صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Stories of the prophets
Chapter
News of Adam عليه السلام
Section
Allah's saying to Adam, "Send forth the contingent of the Fire, from every thousand nine hundred and ninety-nine"
Numbering
Jami al-Kamil 8340 (2nd edition)
Azami 8340