Jami` at-Tirmidhi, Volume 6, Book 45, Hadith 3512 (DarusSalam) ⓘ
Anas bin Malik narrated that a man came to the Prophet and said: “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.”
حَدَّثَنَا يُوسُفُ بْنُ عِيسَى، حَدَّثَنَا الْفَضْلُ بْنُ مُوسَى، حَدَّثَنَا سَلَمَةُ بْنُ وَرْدَانَ، عَنْ أَنَسِ بْنِ مَالِكٍ، أَنَّ رَجُلاً، جَاءَ إِلَى النَّبِيِّ صلى الله عليه وسلم فَقَالَ يَا رَسُولَ اللَّهِ أَىُّ الدُّعَاءِ أَفْضَلُ قَالَ " سَلْ رَبَّكَ الْعَافِيَةَ وَالْمُعَافَاةَ فِي الدُّنْيَا وَالآخِرَةِ " . ثُمَّ أَتَاهُ فِي الْيَوْمِ الثَّانِي فَقَالَ يَا رَسُولَ اللَّهِ أَىُّ الدُّعَاءِ أَفْضَلُ فَقَالَ لَهُ مِثْلَ ذَلِكَ ثُمَّ أَتَاهُ فِي الْيَوْمِ الثَّالِثِ فَقَالَ لَهُ مِثْلَ ذَلِكَ . قَالَ " فَإِذَا أُعْطِيتَ الْعَافِيَةَ فِي الدُّنْيَا وَأُعْطِيتَهَا فِي الآخِرَةِ فَقَدْ أَفْلَحْتَ " . قَالَ هَذَا حَدِيثٌ حَسَنٌ غَرِيبٌ مِنْ هَذَا الْوَجْهِ إِنَّمَا نَعْرِفُهُ مِنْ حَدِيثِ سَلَمَةَ بْنِ وَرْدَانَ .
also referenced under: Hadith 3512 (Reference) & Book 48, Hadith 143 (In-Book)