Sahih al-Bukhari Book 65, Hadith 319
It was said, "O Allah's Messenger (ﷺ)! We know how to greet you, but how to invoke Allah for you?" The
Prophet said, "Say: Allahumma salli ala Muhammadin wa'ala `Ali Muhammaddin, kama sallaita 'ala
all Ibrahim, innaka Hamidun Majid."
Aflah, the brother of Abi Al-Qu`ais, asked permission to visit me after the order of Al-Hijab was revealed. I said, "I will not permit him unless I take permission of the Prophet (ﷺ) about him for it was not the brother of Abi Al-Qu`ais but the wife of Abi Al-Qu`ais that nursed me." The Prophet (ﷺ) entered upon me, and I said to him, "O Allah's Messenger (ﷺ)! Aflah, the brother of Abi Al-Qu`ais asked permission to visit me but I refused to permit him unless I took your permission." The Prophet (ﷺ) said, "What stopped you from permitting him? He is your uncle." I said, "O Allah's Messenger (ﷺ)! The man was not the person who had nursed me, but the woman, the wife of Abi Al-Qu`ais had nursed me." He said, "Admit him, for he is your uncle. Taribat Yaminuki (may your right hand be saved)" `Urwa, the sub-narrator added: For that `Aisha used to say, "Consider those things which are illegal because of blood relations as illegal because of the corresponding foster relations."
We said, "O Allah's Messenger (ﷺ)! (We know) this greeting (to you) but how shall we invoke Allah for you?" He said, "Say! Allahumma salli ala Muhammadin `Abdika wa rasulika kama- sallaita 'ala all Ibrahim wa barik ala Muhammadin wa'ala all Muhammadin kama barakta 'ala all Ibrahim.' Al-Laith said: 'Ala Muhammadin wa 'ala all Muhammadin kama barakta ala all Ibrahim.
Narrated Ibn Abi Hazim and Ad-Darawardi:
Yazid said, "Kama sallaita ala Ibrahima wa barik 'ala Muhammad in wa all Muhammadin kama barakta 'ala Abrahima wa all Ibrahim."