I suggest you read Derech Hashem - The Way of G-d, which lays out clearly the process of G-d's infinite goodness, and his benevolence in giving that over to creation. Below is an AI summary of that sefer/book, which is not perfect, but at least gives the salient points for your question. The text is divided into four main sections, each addressing fundamental aspects of Judaism's worldview: The Creator and the Purpose of Creation God's Perfection: The Creator is infinite, self-sustaining, and lacks nothing. The Purpose: Because God is inherently good, He desired to bestow ultimate goodness and perfection upon creations outside of Himself. The Process: Humanity was created as the vessel to receive this ultimate good, which is achieved by clinging to God in the World to Come. [1, 2] Divine Providence and Human Responsibility Free Will: God endowed humans with the capacity to choose between good and evil, making them responsible for their own spiritual standing and destiny. Providence (Hashgacha): God oversees the world, balancing strict justice with mercy. He governs humanity in this world and directs global events, ultimately leading to a destined perfection. [1] Spiritual Systems, the Soul, and Evil The Soul: Human souls are composed of various spiritual faculties. Their ultimate goal is to connect the physical body to the spiritual realm through righteousness. Spiritual Mechanics: The text explains how physical actions (mitzvot) create tangible positive spiritual forces, while sins empower negative forces or "evil" in the world. [1] Astrology & Angels: It explores how God utilizes intermediate forces (such as angels and celestial bodies) to regulate the natural and spiritual realms. [1] Divine Service and Practices Prophecy and Connection: This section details how prophets achieved a state of heightened connection to the Divine. Torah and Prayer: Observance of the commandments, dedicated Torah study, and focused prayer (Tefillah) are the practical tools given to humans to draw closer to the Creator and fulfill their life's purpose
