"مَنْ أَحْسَن فِي الإِسْلامِ لَمْ يُؤاخَذْ بِمَا عَمِلَ فِي الْجَاهِلِيَّةِ، وَمَنْ أَسَاءَ فِي الإِسْلامِ أُخذَ بالأوَّلِ والآخِر".
See similar narrations below:
Collected by Bukhārī, Muslim, Ibn Mājah, Aḥmad, Dārimī, Ibn Ḥibbān, Bayhaqī, SuyūṭīA man said, "O Messenger of Allah ﷺ! Shall we be punished for what we did in the Prelslamic Period of ignorance?" The Prophet ﷺ said, "Whoever does good in Islam will not be punished for what he did in the Pre-lslamic Period of ignorance and whoever does evil in Islam will be punished for his former and later (bad deeds).
رَجُلٌ يَا رَسُولَ اللَّهِ أَنُؤَاخَذُ بِمَا عَمِلْنَا فِي الْجَاهِلِيَّةِ قَالَ مَنْ أَحْسَنَ فِي الإِسْلاَمِ لَمْ يُؤَاخَذْ بِمَا عَمِلَ فِي الْجَاهِلِيَّةِ وَمَنْ أَسَاءَ فِي الإِسْلاَمِ أُخِذَ بِالأَوَّلِ وَالآخِرِ
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.
قُلْنَا يَا رَسُولَ اللَّهِ أَنُؤَاخَذُ بِمَا عَمِلْنَا فِي الْجَاهِلِيَّةِ قَالَ مَنْ أَحْسَنَ فِي الإِسْلاَمِ لَمْ يُؤَاخَذْ بِمَا عَمِلَ فِي الْجَاهِلِيَّةِ وَمَنْ أَسَاءَ فِي الإِسْلاَمِ أُخِذَ بِالأَوَّلِ وَالآخِرِ
“We said: ‘O Messenger of Allah, will we be taken to task for what we did in the Ignorance period?’ The Messenger of Allah ﷺ said: ‘Whoever does good in Islam (i.e., after becoming a Muslim) he will not be taken to task for what he did in the Ignorance period, but whoever does evil (i.e., after entering Islam) he will be taken to task for both the former and the latter.’”
قُلْنَا يَا رَسُولَ اللَّهِ أَنُؤَاخَذُ بِمَا كُنَّا نَفْعَلُ فِي الْجَاهِلِيَّةِ فَقَالَ رَسُولُ اللَّهِ ﷺ مَنْ أَحْسَنَ فِي الإِسْلاَمِ لَمْ يُؤَاخَذْ بِمَا كَانَ فِي الْجَاهِلِيَّةِ وَمَنْ أَسَاءَ أُخِذَ بِالأَوَّلِ وَالآخِرِ
[Machine] "O Messenger of Allah, will we be held accountable for what we did in the pre-Islamic era?" He ﷺ replied, "If you did good deeds, you will not be held accountable. But if you committed wrongdoings in Islam, you will be held accountable for both past and present actions."
رَجُلٌ يَا رَسُولَ اللهِ أَنُؤَاخَذُ بِمَا عَمِلْنَا فِيالْجَاهِلِيَّةِ؟ قَالَ إِنْ أَحْسَنْتَ لَمْ تُؤَاخَذْ وَإِنْ أَسَأْتَ فِي الْإِسْلَامِ أُخِذْتَ بِالْأَوَّلِ وَالْآخِرِ
[Machine] "People, O Messenger of Allah, will our actions during the period of ignorance be held against us?" He said, "Whoever does good in Islam will not be held accountable for their actions before Islam. And whoever does evil, will be held accountable for their actions before Islam and after."
نَاسٌ يَا رَسُولَ اللهِ أَنُؤَاخَذُ بِأَعْمَالِنَا فِي الْجَاهِلِيَّةِ؟ فَقَالَ مَنْ أَحْسَنَ مِنْكُمْ فِي الْإِسْلَامِ فَلَا يُؤَاخَذُ بِهِ وَمَنْ أَسَاءَ فَيُؤْخَذُ بِعَمَلِهِ الْأَوَّلِ وَالْآخِرِ
A man said, "O Messenger of Allah ﷺ! Shall we be punished for what we did in the Prelslamic Period of ignorance?" The Prophet ﷺ said, "Whoever does good in Islam will not be punished for what he did in the Pre-lslamic Period of ignorance and whoever does evil in Islam will be punished for his former and later (bad deeds). (Using translation from Bukhārī 6921)
رَجُلٌ لِلنَّبِيِّ ﷺ أَيُؤَاخَذُ أَحَدُنَا بِمَا عَمِلَ فِي الْجَاهِلِيَّةِ؟ قَالَ مَنْ أَحْسَنَ فِي الْإِسْلَامِ لَمْ يُؤَاخَذْبِمَا عَمِلَ فِي الْجَاهِلِيَّةِ وَمَنْ أَسَاءَ فِي الْإِسْلَامِ أُخِذَ بِالْأَوَّلِ وَالْآخِرِ
[Machine] A man said, "O Messenger of Allah, will a person be held accountable for what they did in pre-Islamic times?" He replied, "Whoever does good in Islam will not be held accountable for what they did in pre-Islamic times, and whoever does evil in Islam will be held accountable for both the past and present."
رَجُلٌ يَا رَسُولَ اللَّهِ أَيُؤَاخَذُ الرَّجُلُ بِمَا عَمِلَ فِي الْجَاهِلِيَّةِ؟ قَالَ «مَنْ أَحْسَنَ فِي الْإِسْلَامِ لَمْ يُؤَاخَذْ بِمَا كَانَ عَمِلَ فِي الْجَاهِلِيَّةِ وَمَنْ أَسَاءَ فِي الْإِسْلَامِ أُخِذَ بِالْأَوَّلِ وَالْآخِرِ»
ذِكْرُ الْإِخْبَارِ بِأَنَّ الْمَرْءَ الْمُسْلِمَ يَنْفَعُهُ إخْلَاصُهُ حَتَّى يُحْبِطَ مَا كَانَ قَبْلَ الْإِسْلَامِ مِنَ السَّيِّئَةِ، وَأَنَّ نِفَاقَهُ لَا تَنْفَعُهُ مَعَهُ الْأَعْمَالُ الصَّالِحَةُ
[Machine] A man said, "O Messenger of Allah, will Allah hold us accountable for what we used to do in the time of ignorance?" The Prophet ﷺ said, "Whoever does good in Islam will not be held accountable for what they did in the time of ignorance, and whoever does evil in Islam will be held accountable for both the past and the present."
رَجُلٌ يَا رَسُولَ اللَّهِ أَيُؤَاخِذُ اللَّهُ أَحَدَنَا بِمَا كَانَ يَعْمَلُ فِي الْجَاهِلِيَّةِ؟ قَالَ «مَنْ أَحْسَنَ فِي الْإِسْلَامِ لَمْ يُؤَاخَذْ بِمَا عَمِلَ فِي الْجَاهِلِيَّةِ وَمَنْ أَسَاءَ فِي الْإِسْلَامِ أُخِذَ بِالْأَوَّلِ وَالْآخِرِ»
A man said, "O Messenger of Allah ﷺ! Shall we be punished for what we did in the Prelslamic Period of ignorance?" The Prophet ﷺ said, "Whoever does good in Islam will not be punished for what he did in the Pre-lslamic Period of ignorance and whoever does evil in Islam will be punished for his former and later (bad deeds). (Using translation from Bukhārī 6921)
قَالَ رَجُلٌ يَا رَسُولَ اللهِ أَنُؤَاخَذُ بِمَا عَمِلْنَا فِي الْجَاهِلِيَّةِ؟ قَالَ مَنْ أَحْسَنَ فِي الْإِسْلَامِ لَمْ يُؤَاخَذْ بِمَا عَمِلَ فِي الْجَاهِلِيَّةِ وَمَنْ أَسَاءَ فِي الْإِسْلَامِ أُخِذَ بِالْأَوَّلِ وَالْآخِرِ
"مَنْ أحْسَنَ في الإسْلامِ لَمْ يُؤَاخَذْ فِيمَا عَمِلَ في الْجَاهلَيَّة، وَمَنْ أَسَاءَ مِنْكُمْ في الإِسْلام، أُخِذَ بِمَا عَمِلَ في الْجَّاهِلِيةِ والإِسْلام".