حَدَّثَنَا الْعَبَّاسُ بْنُ الْوَلِيدِ بْنِ مَزْيَدٍ، أَخْبَرَنِي أَبِي، حَدَّثَنَا الأَوْزَاعِيُّ، حَدَّثَنِي حَسَّانُ بْنُ عَطِيَّةَ، عَنْ عَمْرِو بْنِ شُعَيْبٍ، عَنْ أَبِيهِ، عَنْ جَدِّهِ، أَنَّ الْعَاصَ بْنَ وَائِلٍ، أَوْصَى أَنْ يُعْتَقَ، عَنْهُ مِائَةُ رَقَبَةٍ فَأَعْتَقَ ابْنُهُ هِشَامٌ خَمْسِينَ رَقَبَةً فَأَرَادَ ابْنُهُ عَمْرٌو أَنْ يَعْتِقَ عَنْهُ الْخَمْسِينَ الْبَاقِيَةَ فَقَالَ حَتَّى أَسْأَلَ رَسُولَ اللَّهِ صلى الله عليه وسلم فَأَتَى النَّبِيَّ صلى الله عليه وسلم فَقَالَ يَا رَسُولَ اللَّهِ إِنَّ أَبِي أَوْصَى بِعِتْقِ مِائَةِ رَقَبَةٍ وَإِنَّ هِشَامًا أَعْتَقَ عَنْهُ خَمْسِينَ وَبَقِيَتْ عَلَيْهِ خَمْسُونَ رَقَبَةً أَفَأُعْتِقُ عَنْهُ فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏إِنَّهُ لَوْ كَانَ مُسْلِمًا فَأَعْتَقْتُمْ عَنْهُ أَوْ تَصَدَّقْتُمْ عَنْهُ أَوْ حَجَجْتُمْ عَنْهُبَلَغَهُ ذَلِكَ
Translation
Narrated 'Amr b. Suh'aib

Al-'As ibn Wa'il left instructions in his will for the emancipation of a hundred slaves on his behalf. His son Hisham emancipated fifty slaves, and his son Amr intended to emancipate the remaining fifty on his behalf, but he said, "Let me ask the Messenger of Allah, peace and blessings be upon him." So he came to the Prophet, peace and blessings be upon him, and said, "O Messenger of Allah, my father left instructions in his will for the emancipation of a hundred slaves, and Hisham emancipated fifty on his behalf, and fifty slaves remain. Shall I emancipate them on his behalf?" The Messenger of Allah, peace and blessings be upon him, said, "Had he been a Muslim, and you had emancipated slaves on his behalf, or given charity on his behalf, or performed the pilgrimage on his behalf, that would have reached him."