It sounds like you're describing the Big Bang theory, which is the leading explanation for the origin of the universe. Here’s a more detailed version of that explanation:
Approximately 13.8 billion years ago, the universe began as an extremely hot and dense point known as a singularity. This singularity contained all of the mass and energy of the universe. As it expanded, the temperature and density began to decrease. This expansion is what we refer to as the "Big Bang."
As the universe cooled, subatomic particles formed, eventually leading to the creation of protons, neutrons, and electrons. In the first few minutes after the Big Bang, these particles combined to form simple nuclei in a process known as Big Bang nucleosynthesis. After about 380,000 years, the universe had cooled enough for electrons to combine with protons to form neutral hydrogen atoms, allowing photons to travel freely. This event is known as recombination, and it resulted in the release of the Cosmic Microwave Background radiation, which still permeates the universe today.
As the universe continued to expand, matter began to clump together under the influence of gravity, leading to the formation of stars, galaxies, and eventually the complex structures we see in the universe today. The expansion of the universe is still ongoing, and observations show that it is actually accelerating due to a mysterious force known as dark energy.
If you have any specific questions about the Big Bang theory or the evolution of the universe, feel free to ask!