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.
ibnmajah:3848ʿAbd al-Raḥman b. Ibrāhīm al-Dimashqī > Ibn Abū Fudayk > Salamah b. And Rdān > Anas b. Mālik

"A man come to the Prophet (saas) and said: 'O Messenger of Allah, what supplication is best?' He said: 'Ask your Lord for forgiveness and to be kept safe and sound in this world and in the Hereafter.' Then (the man) came the next day and said: 'O Messenger of Allah, what supplication is best?' He said: 'Ask your Lord for forgiveness and to be kept safe and sound in this world and in the Hereafter.' Then (the man) came the third day and said: 'O Prophet of Allah, what supplication is best?' He said: 'Ask your Lord for forgiveness and to be kept safe and sound in this world and in the Hereafter, for if you are forgiven and kept safe and sound in this world and the Hereafter, you will have succeeded.'"  

ابن ماجة:٣٨٤٨حَدَّثَنَا عَبْدُ الرَّحْمَنِ بْنُ إِبْرَاهِيمَ الدِّمَشْقِيُّ حَدَّثَنَا ابْنُ أَبِي فُدَيْكٍ أَخْبَرَنِي سَلَمَةُ بْنُ وَرْدَانَ عَنْ أَنَسِ بْنِ مَالِكٍ قَالَ

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


See similar narrations below:

Collected by Tirmidhī, Aḥmad
tirmidhi:3512Yūsuf b. ʿĪsá > al-Faḍl b. Mūsá > Salamah b. And Rdān > Anas b. Mālik

“O Messenger of Allah, which supplication is the best?” He ﷺ said: “Ask Your Lord For Al-ʿĀfiyah and Al-Muʿāfāh in this world and in the Hereafter.” Then he came to him on the second day and said: “O Messenger of Allah, which supplication is the best?” So he ﷺ said to him similar to that. Then he came to him on the third day, so he ﷺ said to him similar to that. He ﷺ said: “So when you have been given Al-ʿĀfiyah in this world, and you have been given it in the Hereafter, then you have succeeded.”  

الترمذي:٣٥١٢حَدَّثَنَا يُوسُفُ بْنُ عِيسَى حَدَّثَنَا الْفَضْلُ بْنُ مُوسَى حَدَّثَنَا سَلَمَةُ بْنُ وَرْدَانَ عَنْ أَنَسِ بْنِ مَالِكٍ

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

ahmad:12291Hāshim b. al-Qāsim > Ziyād b. ʿAbdullāh b. ʿUlāthah > Salamah b. And Rdān al-Madanī > Anas b. Mālik

"A man come to the Prophet (saas) and said: 'O Messenger of Allah, what supplication is best?' He said: 'Ask your Lord for forgiveness and to be kept safe and sound in this world and in the Hereafter.' Then (the man) came the next day and said: 'O Messenger of Allah, what supplication is best?' He said: 'Ask your Lord for forgiveness and to be kept safe and sound in this world and in the Hereafter.' Then (the man) came the third day and said: 'O Prophet of Allah, what supplication is best?' He said: 'Ask your Lord for forgiveness and to be kept safe and sound in this world and in the Hereafter, for if you are forgiven and kept safe and sound in this world and the Hereafter, you will have succeeded.'" (Using translation from Ibn Mājah 3848)   

أحمد:١٢٢٩١حَدَّثَنَا هَاشِمُ بْنُ الْقَاسِمِ حَدَّثَنَا زِيَادُ بْنُ عَبْدِ اللهِ بْنِ عُلَاثَةَ حَدَّثَنَا سَلَمَةُ بْنُ وَرْدَانَ الْمَدَنِيُّ قَالَ سَمِعْتُ أَنَسَ بْنَ مَالِكٍ قَالَ

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