Narrated Anas (raa): When the ailment of the Prophet (saws) got aggravated, he became unconscious whereupon Fatima (raa) said, “Oh, how distressed my father is!”
He said, “Your father will have no more distress after today.”
When he expired, she said, “O Father (saws)! Who has responded to the call of the Lord Who has invited him! O Father (saws), whose dwelling place is the Garden of Paradise (i.e. Al-Firdaus)! O Father! We convey this news (of your death) to Gabriel.”
When he was buried, Fatima (raa) said, “O Anas (raa)! Do you feel pleased to throw earth over Allah’s Apostle (saws)?”
Military Expeditions led by the Prophet (saws) (Al-Maghaazi) – Sahih Bukhari: Book 5, Volume 5, Hadith 739
Commentary: The Book of Miscellany
Patience & Perseverance
Riyadh as-Saaliheen (The Gardens of the Righteous), by Imam an-Nawawi
This Hadith shows that it is permissible to express the trouble and restlessness which one feels at the time of death. Similarly, expression of pain and grief in a natural way in the event of someone’s death is also permissible.
To remember the virtues of the deceased is also permitted but it is to be free from wailing and moaning, lamentation and crying, and tearing off clothes, etc. The last words of Fatimah (raa) are also a way of expressing grief and sadness and not a criticism on the burial of the Prophet (saws) because such criticism is prohibited by Shari’ah and no one is exempted from it.