It was recorded by Muslim (8/209) and Ahmad (3/228 and 269).
The second: Qatadah narrated from Anas:
A man from the desert came to the Prophet and said, “O Messenger of Allah, when will the Hour come?” He said:
“Woe to you! And what have you prepared for it?”
He said, “I have prepared nothing for it except that I love Allah and His Messenger.” He said:
“You will be with those whom you love.”
We said, “And are we likewise?” He said:
“Yes.”
We were intensely delighted that day. Then a boy belonging to al-Mughirah, who was of my age, passed by, and he said:
“If this one is delayed, old age will not overtake him before the Hour comes.”
It was recorded by al-Bukhari (6167), Muslim, and Ahmad (3/192).
The third: al-Hasan narrated from Anas:
A Bedouin asked the Messenger of Allah about the coming of the Hour. The Prophet said to him:
“What have you prepared for it?”
He said, “Nothing, except that I love Allah and His Messenger.” He said:
“A person will be with those whom he loves.”
Then he said:
“Where is the one who asked about the Hour?”
He said: There was a boy present, so he said:
“If this one lives, he will not reach old age before the Hour comes.”
It was recorded by Ahmad (3/213 and 283), and in the second version he added: