It is Allah Who creates every condition that people need to survive. The location of the Earth in the solar system, the atmosphere that provides the required environment for life, water, an essential part of life that covers a great part of the Earth, the movements of the Earth that enables the rise of the Sun every morning and its sinking every evening and many such other happenings take place by Allah’s Will.
The Prophet Muhammad (saas) reminded his people about Allah's superior might:
Say: “Think! If Allah made it permanent night for you till the Day of Rising, what god is there other than Allah to bring you light? Do you not then hear?” Say: “Think! If Allah made it permanent day for you till the Day of Rising, what god is there other than Allah to bring you the night to rest in? Do you not then see?” (Surat al-Qasas, 71-72)
The Prophet Muhammad told his people to look at the signs of creation in this world and to take lessons from them. Seeing these flawless signs of creation, people should grasp another important fact. Allah, Who is able to create all these things, will surely create their exact counterparts in the Hereafter. The Prophet Muhammad(saas) explained this important fact to his people:
Say: “Travel about the Earth and see how He brought creation out of nothing. Then later Allah will bring about the Second Creation. Allah has power over all things.” (Surat al-’Ankabut, 20)