What does Islam say about dreams? Does Allah Ta’ala communicate through dreams?

Question

There are various types of dreams a Muslim may experience, among which are good and truthful dreams. Such dreams are called Mubashshiraat, which are sound dreams that are indicative of glad tidings. So a Muslim may see a vision in which he receives glad tidings of Allah Ta’ala in order to keep on doing goodness. Also, a Muslim may see a vision in which he gets warnings against wrongdoing. A Muslim needs to be close to Allah by doing good deeds and avoiding evil so as to be guided by Allah to the straight path. There are also bad dreams from Shaytaan and it will not harm the Muslim.