Narrated Abu Huraira reported God’s Messenger as saying:
If anyone would like to have the fullest measure granted him when he invokes blessings on us, the members of the prophetical family, he should say, “O God, bless Muhammad the ummi* prophet, his wives who are the mothers of the faithful, his offspring, and the people of his house as Thou didst bless the family of Abraham. Thou art indeed praiseworthy and glorious.”
* This has commonly been explained as meaning “illiterate”, but it may mean “gentile”. Cf. Al-Qur’an; 7:157, 158.
Abu Huraira reported God’s Messenger as saying, “If anyone invokes a blessing on me at my grave I shall hear him, and if anyone invokes a blessing on me at a distance I shall have it conveyed to me.”
I was praying, and so was the Prophet accompanied by Abu Bakr and ‘Umar. When I sat I first extolled God’s praises then invoked blessings on the Prophet, then made supplication for myself, and the Prophet said, “If you ask you will be given it, if you ask you will be given it.”