Sexual Intercourse with the Deceased
Scholars have said that if a dreamer sees themselves having sexual intercourse with an unknown deceased person in a grave, it might indicate the dreamer committing an immoral act or adultery.
Per Ibn Sirin's Muntakhab al-Kalam fi Tafsir al-Ahlam