Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
darimi:2982Yazīd b. Hārūn > al-Ashʿath > al-Shaʿbī > ʿAlī And Zayd

[Machine] Ali and Zaid said, "When the grandmothers are equal, the inheritance is distributed among three grandmothers: the grandmother of his father, the grandmother of his mother, and the grandmother of his father's mother. If one of them is closer, then the relatives of the deceased have the right to inherit.”  

الدارمي:٢٩٨٢أَخْبَرَنَا يَزِيدُ بْنُ هَارُونَ حَدَّثَنَا الْأَشْعَثُ عَنْ الشَّعْبِيِّ

عَنْ عَلِيٍّ وَزَيْدٍ قَالَا «إِذَا كَانَتِ الْجَدَّاتُ سَوَاءً وَرِثَ ثَلَاثُ جَدَّاتٍ جَدَّتَا أَبِيهِ أُمُّ أُمِّهِ وَأُمُّ أَبِيهِ وَجَدَّةُ أُمِّهِ فَإِنْ كَانَتْ إِحَدَاهُنَّ أَقْرَبَ فَالسَّهْمُ لِذَوِي الْقُرْبَى»