Anas bin Malik reported,

A bedouin came to the Prophet ﷺ and asked, "Messenger of Allah, when will the Hour come?"The Prophet ﷺ replied, "Woe to you, what have you prepared for it?"The man said, "I have prepared nothing for it, except that I love Allah and His Messenger."The Prophet ﷺ said, "You will be with those you love."We said, "And we too?"He answered, "Yes."We rejoiced greatly that day. Then a young servant of Mughira passed by, and he was of my own age, so the Prophet ﷺ said, "If this boy lives long, old age will not reach him before the Hour comes."Shuba narrated it in abbreviated form from Qatada, who said, "I heard Anas report it from the Prophet ﷺ."

Bukhari 6167

Sahih

حدثنا عمرو بن عاصم حدثنا همام عن قتادة

عن أنس

أن رجلا من أهل البادية أتى النبي ﷺ فقال يا رسول الله متى الساعة قائمة قال ويلك وما أعددت لها قال ما أعددت لها إلا أني أحب الله ورسوله قال إنك مع من أحببت فقلنا ونحن كذلك قال نعم ففرحنا يومئذ فرحا شديدا فمر غلام للمغيرة وكان من أقراني فقال إن أخر هذا فلن يدركه الهرم حتى تقوم الساعة واختصره شعبة عن قتادة سمعت أنسا عن النبي ﷺ

البخاري 6167صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Manners
Chapter
Saying to someone, "Woe to you"
Numbering
Darussalam 6167
Bukhari 6167