It is narrated from Huzayl (may Allah have mercy on him) that a man came to Sayyiduna Abu Musa (may Allah be pleased with him) and asked him about a woman who left a daughter, a son's daughter and a sister. Sayyiduna Abu Musa (may Allah be pleased with him) said: "Half is for the daughter, half is for the sister, and the son's daughter gets nothing. Go to Ibn Mas'ud (may Allah be pleased with him); he too will say the same as me." He came to Ibn Mas'ud (may Allah be pleased with him) and also mentioned what Sayyiduna Abu Musa (may Allah be pleased with him) had said. Sayyiduna Ibn Mas'ud (may Allah be pleased with him) said: "I would then have gone astray and would not be among the rightly guided. Rather, I will give the same judgement that the Messenger of Allah (peace and blessings be upon him) gave: 'The daughter gets half, the son's daughter a sixth, and the remainder is for the sister.'" The man returned to Sayyiduna Abu Musa (may Allah be pleased with him) and told him, and Sayyiduna Abu Musa (may Allah be pleased with him) said: "As long as a scholar like (Ibn Mas'ud, may Allah be pleased with him) is among us, do not ask us."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الفرائض / 12329