It is narrated from Sayyidah Umm Salamah (may Allah be pleased with her) that when Sayyiduna Abu Salamah (may Allah be pleased with him) passed away while the Messenger of Allah (peace and blessings be upon him) was with him, I stood up to weep over him. The Messenger of Allah (peace and blessings be upon him) said to me: "What are you about to do?" I said: O Messenger of Allah, I am weeping over Abu Salamah. The Messenger of Allah (peace and blessings be upon him) said: "Do not do so, for whatever the family of the deceased pray for, they are granted at that time."
Hadith Referenceالمعجم الكبير للطبراني / مسند النساء / 20129