Anas ibn Malik reported: The Messenger of Allah, peace and blessings be upon him, said, “Ask your Lord for forgiveness and wellness in the world and the Hereafter. If you are given forgiveness and wellness in the world and the Hereafter, you have succeeded.”
Source: Sunan Ibn Mājah 3848
Grade: Sahih (authentic) according to Al-Suyuti
عَنْ أَنَسِ بْنِ مَالِكٍ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ سَلْ رَبَّكَ الْعَفْوَ وَالْعَافِيَةَ فِي الدُّنْيَا وَالْآخِرَةِ فَإِذَا أُعْطِيتَ الْعَفْوَ وَالْعَافِيَةَ فِي الدُّنْيَا وَالْآخِرَةِ فَقَدْ أَفْلَحْتَ
3848 سنن ابن ماجه كتاب الدعاء باب الدعاء بالعفو والعافية
1246 المحدث السيوطي خلاصة حكم المحدث صحيح في الجامع الصغير