BUKHARI 6171:
from Anas b. Mālik —
A man asked the Prophet ﷺ "When will the Hour be established O Messenger of Allah ﷺ?" The Prophet ﷺ . said, "What have you prepared for it?" The man said, " I haven't prepared for it much of prayers or fast or alms, but I love Allah and His Apostle." The Prophet ﷺ said, "You will be with those whom you love."
البخاري ٦١٧١:
عن انس بن مالك —
أَنَّ رَجُلاً سَأَلَ النَّبِيَّ ﷺ مَتَّى السَّاعَةُ يَا رَسُولَ اللَّهِ قَالَ مَا أَعْدَدْتَ لَهَا قَالَ مَا أَعْدَدْتُ لَهَا مِنْ كَثِيرِ صَلاَةٍ وَلاَ صَوْمٍ وَلاَ صَدَقَةٍ وَلَكِنِّي أُحِبُّ اللَّهَ وَرَسُولَهُ قَالَ أَنْتَ مَعَ مَنْ أَحْبَبْتَ
hadithunlocked.com