Admonition from the Deceased
Interpreters suggest that if someone dreams of a deceased person admonishing them or teaching them knowledge, they might achieve righteousness in their religion in proportion to the admonition or knowledge received.
Per Ibn Sirin's Muntakhab al-Kalam fi Tafsir al-Ahlam