Rashid relates: I heard Sayyiduna Mu'awiyah (may Allah be pleased with him) say: I heard the Messenger of Allah (peace and blessings be upon him) make this supplication: "O Allah, whomever I cursed in the days of ignorance (Jahiliyyah) and who then entered Islam, make that a means of nearness to You for him."
Hadith Referenceالمعجم الكبير للطبراني / باب الميم / 16973