There are many theories of Genesis that exist such as Shoonyavad and Aarambhvad. According to the Shrimad Bhagavat, in the beginning there was only one Bhrama (Supreme God) and no other entity. Bhrama wished to become many and said:
“Ekoham bahuśyām”,
Meaning, I am one, Let me be many.
The Bhrama manifested its consciousness in many forms, which became the Sansār (world). The genesis of the world takes place by God’s will alone. The world exists by God’s grace and in the end it is absorbed in God Himself.
In the Vedas it is said that:
Yato vā īmāni bhutāni
Jāyante yen jātāni jīvanti
Yat prayantyabhisamvishanti
Tat vijigyasasva tad Bhrama
Bhrama is that from which both sentient living beings and inanimate objects are created and sustained, and in the end in whom they get absorbed. Have a desire to know and understand that Bhrama.
The Greek philosopher, Plato, stated, “Before an object is created, a thought is born.” Before a table is made, its thought takes shape in the carpenter’s mind. Hence the universe begins with thought. Logically, it follows that with the end of the thought the universe will also end. As a result, in a state of thoughtlessness, or Samadhi, your world gets dissolved or submerged. Therefore, our scriptures, describe this state of thoughtlessness or Samadhi also as a form of Pralay or apocalypse.