Sunan al-Darimi 1
حَدَّثَنَا مُحَمَّدُ بْنُ يُوسُفَ، عَنْ سُفْيَانَ، عَنِ الْأَعْمَشِ، عَنْ أَبِي وَائِلٍ: عَنْ عَبْدِ اللَّهِ ﵁ قَالَ: قَالَ رَجُلٌ: يَا رَسُولَ اللَّهِ أَيُؤَاخَذُ الرَّجُلُ بِمَا عَمِلَ فِي الْجَاهِلِيَّةِ؟ قَالَ: «مَنْ أَحْسَنَ فِي الْإِسْلَامِ لَمْ يُؤَاخَذْ بِمَا كَانَ عَمِلَ فِي الْجَاهِلِيَّةِ، وَمَنْ أَسَاءَ فِي الْإِسْلَامِ، أُخِذَ بِالْأَوَّلِ وَالْآخِرِ»
Muhammad ibn Yusuf narrated to us, from Sufyan, from al-Aʿmash, from Abu Waʾil, from ʿAbdullah, may Allah be pleased with him, who said: A man said: "O Messenger of Allah, will a man be taken to account for what he did in the Jahiliyyah?" He said: "Whoever does good in Islam will not be taken to account for what he used to do in the Jahiliyyah, and whoever does evil in Islam will be taken to account for the first and the last."