(36) بَابُ مَنْ وَصَلَ رَحِمَهُ فِي الْجَاهِلِيَّةِ ثُمَّ أَسْلَمَ
Hakim ibn Hizam said to the Prophet, may Allah bless him and grant himpeace, "Do you think that the acts of worship which I used to do in the timeof the Jahiliyya - maintaining relations with relatives, settingslaves free and sadaqa - will bring me a reward?" Hakim saidthat the Messenger of Allah, may Allah bless him and grant him peace, said,"When you become Muslim, you keep the good actions you have already done."
Reference: Al-Adab Al-Mufrad 70
In-book reference: Book 2, Hadith 24
English translation: Book 2, Hadith 70