Did prophet Muhammed committed necrophilia
The ultimate problematic matter that may be raised with regards to this story is inquiring about the meaning of "he slept with her in her grave". This was explained in the other version of the hadeeth indicating that he, sallallaahu ʻalayhi wa sallam, lay down in the grave before she was placed therein, as shall be underlined in the following lines.
In general, this story is not free of weakness. Therefore, Ath-Thahabi omitted it from his book At-Talkhees, as he labeled it weak. Al-Haythami said in Majma' Az-Zawaa'id:
“Anas ibn Maalik said, ‘When Faatimah bint Asad, the mother of ʻAli both, passed away, the Prophet, sallallaahu ʻalayhi wa sallam, visited her house, sat beside her, and said, 'My dear mother, may Allaah have mercy upon you and keep you under His Protection. After my mother, you have loved me as a caring mother loves her child. Many times, you went hungry in order to feed me well; you clothed me and fed me on delicacies that you denied yourself, hoping to attain the pleasure and rewards of Allaah and success in the Hereafter.' The Prophet, sallallaahu ʻalayhi wa sallam, then, ordered that she be washed three times (ghusl), one of them with water mixed with camphor that he poured with his own hand. After this, he took off his qamees (long shirt) and put it on her and shrouded her in a burdah (outer garment). He then asked for Usaamah ibn Zayd, Abu Ayyoob Al-Ansaari, ʻUmar ibn Al-Khattaab and a black slave to dig up her grave. When they reached the lahd (niche inside the grave), he, sallallaahu ʻalayhi wa sallam, dug it and removed the dust himself. Then, he, sallallaahu ʻalayhi wa sallam, lay in the lahd and supplicated to Allaah, 'O Allaah! You are The One in whose power is death and life, and for Whom there is no end, forgive my mother Faatimah. O Allaah! Make her house of the Hereafter vast; I beseech You in the name of your Prophet Muhammad, sallallaahu ʻalayhi wa sallam, and all the past Prophets. O Allaah, the most Merciful of the Merciful ones!' After this, he, sallallaahu ʻalayhi wa sallam, called out, ‘Allaahu Akbar (Allaah is the Greatest).’ With the help of Al-ʻAbbaas and Abu Bakr he, sallallaahu ʻalayhi wa sallam, laid her inside the lahd. [At-Tabraani in Al-Kabeer and Al-Awsat]The chain of narration of this report includes Rawh ibn Salah, who was declared trustworthy by Ibn Hibbaan and Al-Haakim. He is declared weak by some; the rest of the narrators, though, are among the narrators of Al-Bukhari and/or Muslim.
Ibn ʻAbbaas said: 'When Faatimah, the mother of ʻAli both, passed away, the Prophet, sallallaahu ʻalayhi wa sallam, took off his shirt and shrouded her in it and lay in her grave. After she was buried, some people inquired, ‘O Messenger of Allaah! You have done something that you have not done for anyone before.’ He, sallallaahu ʻalayhi wa sallam, replied, ‘I clothed her in my shirt as a shroud so that she would be clothed in the clothes of Paradise. I lay in her grave so that the squeeze of the grave would be easier for her.’' [At-Tabraani in Al-Awsat]. Its chain of narration included Saʻdaan ibn Al-Waleed, who is unknown to me; the rest of the narrators are trustworthy” [Majma’ Az-Zawaai’d]."