A man from the desert dwellers came to the Prophet ﷺ and asked, "Messenger of Allah, when will the Hour come?"He 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 will we be the same?"He answered, "Yes."We rejoiced greatly that day. Then a young boy belonging to Mughirah passed by, who was about my age, and the Prophet ﷺ said, "If this boy lives long, he will not reach old age before the Hour comes."
أن رجلا من أهل البادية أتى النبي ﷺ، فقال: يا رسول الله، متى الساعة قائمة؟ قال: ويلك وما أعددت لها؟ قال: ما أعددت لها إلا أني أحب الله ورسوله، قال: إنك مع من أحببت، فقلنا: ونحن كذلك قال: نعم، ففرحنا يومئذ فرحا شديدا، فمر غلام للمغيرة، وكان من أقراني، فقال: إن أخر هذا فلن يدركه الهرم حتى تقوم الساعة.
Bukhari narrated it in Adab (6167), and Muslim in Fitan and Ashrat Sa'ah (2953:139), both via Hammam, from Qatada, from Anas, who related it. The wording given is Bukhari's, and Muslim's wording is similar.