Muwatta Malik, Book 27, Hadith 1 (Muwatta Malik 1124)

Yahya related to me from Malik, "The generally agreed upon way of doing things among us and what I have seen the people of knowledge doing in our city about the fixed shares of inheritance of children from the mother or father when one or other of them dies is that if they leave male and female children, the male takes the portion of two females. If there are only females, and there are more than two, they get two thirds of what is left between them. If there is only one, she gets a half. If someone shares with the children, who has a fixed share and there are males among them, the reckoner begins with the ones with fixed shares. What remains after that is divided among the children according to their inheritance. "When there are no children, grandchildren through sons have the same position as children, so that grandsons are like sons and grand-daughters are like daughters. They inherit as they inherit and they overshadow as they overshadow. If there are both children and grandchildren through sons, and there is a male among the children, then the grandchildren through sons do not share in the inheritance with him. "If there is no surviving male among the children, and there are two or more daughters, the granddaughters through a son do not share in the inheritance with them unless there is a male who is in the same position as them in relation to the deceased, or further than them. His presence gives access to whatever is left over, if any, to whoever is in his position and whoever is above him of the granddaughters through sons. If something is left over, they divide it...