Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ahmad:13388Yūnus And Ḥasan b. Mūsá > Ḥammād b. Salamah > Thābit al-Bunānī > Anas b. Mālik > a man

[Machine] "O Messenger of Allah, a man loves a people but has not reached their deeds, so the Messenger of Allah ﷺ said, 'A person is with those whom he loves.' He replied, 'His deeds will be like theirs.' The person asked, 'A person is with those whom he loves?' He replied, 'Indeed, it is so.' And it was narrated by Anas that whenever he mentioned this hadith, he would say, 'O Allah, indeed we love you and we love your Messenger.'"  

أحمد:١٣٣٨٨حَدَّثَنَا يُونُسُ وَحَسَنُ بْنُ مُوسَى قَالَا حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ عَنْ ثَابِتٍ الْبُنَانِيِّ عَنْ أَنَسِ بْنِ مَالِكٍ أَنَّ رَجُلًا قَالَ

يَا رَسُولَ اللهِ الرَّجُلُ يُحِبُّ الْقَوْمَ وَلَمْ يَبْلُغْ عَمَلَهُمْ فَقَالَ رَسُولُ اللهِ ﷺ الْمَرْءُ مَعَ مَنْ أَحَبَّ قَالَ حَسَنٌ أَعْمَالَهُمْ قَالَ الْمَرْءُ مَعَ مَنْ أَحَبَّ قَالَ ثَابِتٌ فَكَانَ أَنَسٌ إِذَا حَدَّثَ بِهَذَا الْحَدِيثِ قَالَ اللهُمَّفَإِنَّا نُحِبُّكَ وَنُحِبُّ رَسُولَكَ