Sahih Muslim
Sahih Muslim 123b
وَحَدَّثَنَا حَسَنٌ الْحُلْوَانِيُّ، وَعَبْدُ بْنُ حُمَيْدٍ، - قَالَ الْحُلْوَانِيُّ حَدَّثَنَا وَقَالَ عَبْدٌ، حَدَّثَنِي - يَعْقُوبُ، - وَهُوَ ابْنُ إِبْرَاهِيمَ بْنِ سَعْدٍ - حَدَّثَنَا أَبِي، عَنْ صَالِحٍ، عَنِ ابْنِ شِهَابٍ، قَالَ أَخْبَرَنِي عُرْوَةُ بْنُ الزُّبَيْرِ، أَنَّ حَكِيمَ بْنَ حِزَامٍ، أَخْبَرَهُ أَنَّهُ، قَالَ لِرَسُولِ اللَّهِ صلى الله عليه وسلم أَىْ رَسُولَ اللَّهِ أَرَأَيْتَ أُمُورًا كُنْتُ أَتَحَنَّثُ بِهَا فِي الْجَاهِلِيَّةِ مِنْ صَدَقَةٍ أَوْ عَتَاقَةٍ أَوْ صِلَةِ رَحِمٍ أَفِيهَا أَجْرٌ فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " أَسْلَمْتَ عَلَى مَا أَسْلَفْتَ مِنْ خَيْرٍ " .
Hasan al-Hulwani and Abd ibn Humayd narrated to us. Al-Hulwani said: Ya'qub—that is, Ibn Ibrahim ibn Sa'd—narrated to us; Abd said: Ya'qub narrated to me. My father narrated to us, from Salih, from Ibn Shihab, who said: Urwah ibn al-Zubayr informed me that Hakim ibn Hizam told him that he said to the Messenger of Allah (peace and blessings be upon him): ‘Messenger of Allah, what do you think of acts of devotion I performed in the Age of Ignorance, such as charity, freeing a slave, or maintaining family ties? Will I be rewarded for them?’ The Messenger of Allah replied: ‘You have embraced Islam with the good you did before.’