حَدَّثَنَا أَبُو نُعَيْمٍ، حَدَّثَنَا زَكَرِيَّا، عَنْ عَامِرٍ: "فِي مَمْلُوكٍ تُوُفِّيَ وَلَهُ أَبٌ حُرٌّ، وَلَهُ بَنُونَ مِنْ امْرَأَةٍ حُرَّةٍ، لِمَنْ وَلَاءُ وَلَدِهِ ؟ قَالَ: لِمَوَالِي الْجَدِّ".
It is narrated from Imam Amir Sha'bi, may Allah have mercy on him: A slave died and his free father and his sons (i.e., the deceased's sons) from a free woman are present. So, for whom will the wala' (right of inheritance/freedom) be? He said: In such a case, the wala' will belong to those who own the grandfather.