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.
Hadith In Arabic Text :
حدثنا عثمان بن أبي شيبة، حدثنا جرير، عن منصور، عن أبي وائل، عن عبد الله، قال قال أناس لرسول الله صلى الله عليه وسلم يا رسول الله أنؤاخذ بما عملنا في الجاهلية قال ” أما من أحسن منكم في الإسلام فلا يؤاخذ بها ومن أساء أخذ بعمله في الجاهلية والإسلام ” .
Chapter : The Book of Faith – كتاب الإيمان