Abu al-Muntafiq reported: I said, “O Messenger of Allah, teach me what will save me from the punishment of Allah and admit me into Paradise.” The Messenger of Allah, peace and blessings be upon him, said, “Worship Allah and do not associate anything with Him, establish the prescribed prayers, give the obligatory charity, and perform the Hajj and Umrah pilgrimages.” And I think the Prophet said, “Fast the month of Ramadan, and treat people the way you would love to be treated, and do not treat them the way you would hate to be treated.”
Source: al-Mu’jam al-Kabīr 19/210
Grade: Sahih (authentic) according to Al-Albani
عن أبي المنتفق قَالَ يَا رَسُولَ اللَّهِ عَلِّمْنِي بِمَا يُنَجِّينِي مِنْ عَذَابِ اللَّهِ وَيُدْخِلُنِي جَنَّتَهُ فَقَالَ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ اعْبُدِ اللَّهَ وَلا تُشْرِكْ بِهِ شَيْئًا وَأَقِمِ الصَّلاةَ الْمَكْتُوبَةَ وَأَدِّ الزَّكَاةَ الْمَفْرُوضَةَ وَحُجَّ وَاعْتَمِرْ وَأَظُنُّهُ قَالَ وَصُمْ رَمَضَانَ وَانْظُرْ مَا تُحِبُّ لِلنَّاسِ أَنْ يَأْتُوهُ إِلَيْكَ فَافْعَلْهُ بِهِمْ وَمَا تَكْرَهُ أَنْ يَأْتُوهُ إِلَيْكَ فَذَرْهُمْ مِنْهُ
19/210 المعجم الكبير للطبراني
1039 المحدث الألباني خلاصة حكم المحدث صحيح في صحيح الجامع