564 - حَدَّثَنَا الْحُمَيْدِيُّ. . . . . قَالَ: ثنا هِشَامُ بْنُ عُرْوَةَ، عَنْ أَبِيهِ أَنَّهُ سَمِعَ حَكِيمَ بْنَ حِزَامٍ يَقُولُ: قُلْتُ: يَا رَسُولَ اللَّهِ إِنِّي أَعْتَقْتُ فِي الْجَاهِلِيَّةِ أَرْبَعِينَ مُحَرَّرًا، فَقَالَ لِي رَسُولُ اللَّهِ صَلَّي اللهُ عَلَيْهِ وَسَلَّمَ: «أَسْلَمْتَ عَلَي مَا سَبَقَ مِنْ خَيْرٍ»
Sayyiduna Hakim bin Hizam (may Allah be pleased with him) narrates: I said, "O Messenger of Allah! I had freed forty slaves during the time of ignorance." The Noble Prophet (peace and blessings of Allah be upon him) said to me, "It is because of the good deeds you did before that you have accepted Islam."
Related hadith on this topic