Sayyiduna Ali (may Allah be pleased with him), relating the story of the daughter of Hamzah (may Allah be pleased with her), says: Sayyiduna Ja'far (may Allah be pleased with him) said: I have more right to her, since her maternal aunt is married to me. So he (peace and blessings be upon him) ruled in favour of Sayyiduna Ja'far (may Allah be pleased with him) and said: "Her maternal aunt is married to Ja'far (may Allah be pleased with him), and the maternal aunt is indeed a mother."
Likewise, this story is mentioned in Sunan Abi Dawud through different chains, but in our view this one is more correct.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب النفقات / 15771