The above is pure superstition, with no scientific basis and no credibility. As the saying goes, think about things during the day and dream at night. We should respect and believe in science in everything, and don't be confused by superstitious ideas. Just keep an optimistic attitude.
When people sleep, the brain is also resting, but the rest process of the brain is not complete, and some cortical cells are still active, which leads to some nerves still excited, resulting in dreams. In addition, the external environment can also cause dreaming, such as bed overheating or physical illness, which can also cause dreaming. Some people still have some consciousness in their dreams and can even think logically.