(55) باب بَيَانِ حُكْمِ عَمَلِ الْكَافِرِ إِذَا أَسْلَمَ بَعْدَهُ
Hisham b. Urwa narrated it on the authority of his father:
Hakim b. Hizam freed one hundred slave and donated one hundred camels (for the sake of Allah) during the state of ignorance. Then he freed one hundred slaves and donated one hundred camel (for the sake of Allah) after) he had embraced Islam. He subsequently came to the Apostle (ﷺ). The rest of the hadith is the same as narrated above.
Reference: Sahih Muslim 123 d
In-book reference: Book 1, Hadith 233
USC-MSA web (English) reference(deprecated numbering scheme): Book 1, Hadith 225