It is narrated from Amrah bint Abd al-Rahman (may Allah have mercy on her) that the Messenger of Allah (peace and blessings be upon him) "cursed the man who digs up graves to steal the shrouds, and the woman who does the same."
Imam Musaddad, and Imam al-Bayhaqi in "al-Sunan al-Kubra", recorded this hadith as mursal with a sahih (authentic) chain, while Imam al-Hakim recorded it as marfu' (traced to the Prophet) through Amrah bint Abd al-Rahman (may Allah have mercy on her) from Sayyidah Aishah (may Allah be pleased with her). Imam al-Bayhaqi then recorded al-Hakim's narration in his Sunan and stated the technical ruling that its being mursal is what is correct.