We used to enjoy it when a man from the desert people came and questioned the Messenger of Allah ﷺ.An Arabi came and said, "Messenger of Allah, when will the Hour be established?"The call to prayer was given, and the Messenger of Allah ﷺ led the prayer. When he finished his prayer, he asked, "Where is the one who asked about the Hour?"The man replied, "Here I am, Messenger of Allah."He asked, "What have you prepared for it?"The man said, "I have not prepared much for it, no abundance of prayer or fasting, except that I love Allah and His Messenger."The Messenger of Allah ﷺ said, "A person will be with those whom he loves."Anas said, "I have not seen the Muslims rejoice over anything after Islam as much as they rejoiced over this."
حدثنا ابن أبي عدي عن حميد
كان يعجبنا أن يجيء الرجل من أهل البادية فيسأل رسول الله ﷺ فجاء أعرابي فقال يا رسول الله متى قيام الساعة وأقيمت الصلاة فصلى رسول الله ﷺ فلما فرغ من صلاته قال أين السائل عن الساعة قال أنا يا رسول الله قال وما أعددت لها قال ما أعددت لها من كثير عمل لا صلاة ولا صيام إلا أني أحب الله ورسوله فقال رسول الله ﷺ المرء مع من أحب قال أنس فما رأيت المسلمين فرحوا بعد الإسلام بشيء ما فرحوا به
Its isnad is sahih. Bukhari related it, 8/48, in the Book of Manners, chapter on the sign of love for Allah, and Muslim, 3/3034, no. 2640, in the Book of Righteousness, chapter on a man being with whomever he loves, and Abu Dawud, 4/333, no. 5127, and Tirmidhi, 4/595, no. 2381, who said it is sahih.