The Book of Faith (Kitab Al-Iman)

Muslim :: Book 1 : Hadith 218

It is narrated on the authority of Abdullah b. Mas'ud: We once said: Messenger of Allah, would we be held responsible for our deeds committed in the state of ignorance? He (the Holy Prophet) observed: He who did good deeds in Islam would not be held responsible for what he did in the state of ignorance, but he who committed evil (after having come within the fold of Islam) would be held responsible for his previous and later deeds.

Source materials are from the University of Southern California MSA site
Hadith eBooks converted from Imaan Star