Muwatta Malik, Book 27, Hadith 13 (Muwatta Malik 1136)

Yahya related to me from Malik from Zayd ibn Aslam that Umar ibn al-Khattab asked the Messenger of Allah, may Allah bless him and grant him peace, about someone who died without parents or offspring, and the Messenger of Allah, may Allah bless him and grant him peace, said to him, "The ayat which was sent down in the summer at the end of the Surat an-Nisa (Sura 4) is enoughfor you." Malik said, "The generally agreed on way of doing things among us, in which there is no dispute, and which I saw the people of knowledge in our city doing, is that the person who leaves neither parent or offspring can be of two types. As for the kind described in the ayat which was sent down at the beginning of the Surat an-Nisa in which Allah, the Blessed, the Exalted! said, 'If a man or a woman has no direct heir, but has a brother or a sister by the mother, each of the two has a sixth. If there are more than that, they share equally in a third.' (Sura 4 ayat 12) This heirless one does not have heirs among his mother's siblings since there are no children or parents. As for the other kind described in the ayat which comes at the end of the Surat an-Nisa, Allah, the Blessed, the Exalted, said in it, 'They will ask you for a decision. Say, "Allah gives you a decision about the indirect heirs. If a man perishes having no children, but he has a sister, she shall receive a half of what he leaves, and he is her heir if she has no children. If there are two sisters, they shall receive two-thirds of what he leaves. If there are brothers and sisters, the male shall receive the portion of two females....