It was narrated that "Abdullah bin Ja"far said:
The Messenger of Allah (ﷺ) sent out an army and appointed in charge of them Zaid bin Harithah. He said: “If Zaid is killed or martyred, then your commander is Ja"far. If he is killed or martyred, then your commander is "Abdullah bin Rawahah." Zaid took the banner and fought until he was killed; then Ja"far took the banner and fought until he was killed; then "Abdullah bin Rawahah took the banner and fought until he was killed. Then Khalid bin al-Waleed took the banner and Allah granted victory to him. News of that came to the Prophet (ﷺ) and he went out to the people; he praised and glorified Allah, then he said: “Your brothers met the enemy; Zaid took the banner and fought until he was killed - or martyred; then Ja"far took the banner after him and fought until he was killed - or martyred; then ‘Abdullah bin Rawahah took the banner and fought until he was killed - or martyred. Then one of the swords of Allah, Khalid bin al-Waleed, took the banner and Allah granted victory to him.” He did not go to Ja"far"s family for three days (letting them grieve). Then he went to them and said: "Do not weep for my brother after today. Call the two sons of my brother for me." Then we were brought like chicks and he said: "Call the barber for me." The barber was brought and he shaved our heads, then [the Prophet (ﷺ) ] said: "As for Muhammad, he resembles our uncle Abu Talib, and as for ‘Abdullah, he resembles me physically and in attitude." Then he took my hand and held it and said: "O Allah, take care of Ja"far"s family after him and bless "Abdullah in his business dealings." He said it three times. Then our mother came and told him about how we were now orphans. He said: "Do you fear poverty for them when I am their guardian in this world and in the Hereafter?"