Sayyiduna Jabir (may Allah be pleased with him) states: A man said: "O Messenger of Allah! Will we be taken to account for the deeds we did in the Era of Ignorance?" The Prophet (peace and blessings be upon him) said: "Whoever does good deeds after accepting Islam will not be taken to account for the deeds he did in the Era of Ignorance; and whoever among you still does evil deeds after accepting Islam will be taken to account for (all) the evil deeds he did in the Era of Ignorance and in the era of Islam."
Imam al-Bazzar recorded it; its chain contains a narrator, Asid bin Zayd, and he is a great liar (kadhdhab).
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الإيمان / 339