Bara bin Azib reported,

The Prophet ﷺ performed Umrah in the month of Dhul-Qadah. The hadith continues, mentioning the story of Hamza's daughter, who followed them as they were leaving Makkah. Ali took her by the hand and said to Fatimah, "Take charge of your cousin," and she carried her.Then Ali, Zayd, and Jafar disputed over her custody.Ali said, "I have the most right to her, for she is my cousin."Jafar said, "She is my cousin, and her maternal aunt is my wife."Zayd said, "She is the daughter of my brother."The Prophet ﷺ ruled that she should go to her maternal aunt, saying, "The maternal aunt holds the position of the mother."He said to Ali, "You are from me and I am from you."He said to Jafar, "You resemble me in appearance and character."He said to Zayd, "You are our brother and our freed servant."

Azami 10131

Sahih

عن البراء بن عازب قال

اعتمر النبي ﷺ في ذي القعدة… الحديث، وفيه: قصة ابنة حمزة، وأنها تبعتهم حين الخروج من مكة، فتناولها علي فأخذ بيدها، وقال لفاطمة: دونك ابنة عمك، حملتها، فاختصم فيها علي وزيد وجعفر، فقال علي: أنا أحق بها وهي ابنة عمي… وقال جعفر: ابنة عمي وخالتها تحتي. وقال زيد: ابنة أخي فقضى بها النبي ﷺ لخالتها، وقال: الخالة بمنزلة الأم وقال لعلي: أنت مني وأنا منك وقال لجعفر: أشبهت خلقي وخلقي وقال لزيد: أنت أخونا ومولانا.

الأعظمي 10131صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Virtues of the Companions and reports about them
Chapter
Virtues of individual Companions and their reports
Section
Jafar bin Abu Talib being the most similar of creation to the Prophet ﷺ in appearance and character
Numbering
Jami al-Kamil 10131 (2nd edition)
Azami 10131