Sleeping Before the Imam
Scholars have said that whoever dreams of sleeping before the Imam may be safe from risks they have taken. In this context, equating oneself with the Imam by sleeping with them is considered a risky endeavor.
Per Ibn Sirin's Muntakhab al-Kalam fi Tafsir al-Ahlam