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