"He (Allah) is the Creator of the heavens and the earth..." (Surat ash-Shura: 11)
Allah is the One Who created earth, the Sun, stars and Moon. So how did all the living things on earth come into being? Imagine a huge planet with its surface completely empty. There are no humans or animals, no plants or insects.
Earth has been decorated in a lot of detail for living things to survive. Allah is the One Who has given earth all these details. Otherwise none of us would have been able to live, neither you, nor your parents, or indeed any of your friends would have been here.
Let's consider how Allah created the earth so that living things can survive:
1. Think about… how orderly everything in the universe is. The sun has been put in the exact position from which it could warm us and give us light at the same time. If there were no sun, there would not have been one living thing on earth. Neither us, nor the animals nor any other creatures would have been able to live.
2. Allah has also distanced the sun from earth to just the right extent. If earth was a little bit closer to the sun, the heat would have scorched it and we would not have been able to live. If earth was a little more distant from the sun, then glaciers would have covered it and again, few living things would have been able to survive. This is one of the reasons why there is no life on other planets, because they are either too close to the sun or too distant from it.
3. As you know, living things need to breathe in order to live. We need oxygen in the air so that we can breathe. Exactly the right amount of oxygen exists in the air so that human beings can breathe. If there were a little bit more or a little bit less, neither we, nor the animals, nor the plants would have survived, because, as we have already said, we need to breathe in order to live. For this we need oxygen.
4. One of the most important things that make it possible for us to survive is water. No organism can live without water. For this reason, Allah has created some parts of earth as water. Three quarters of earth's surface is covered with water. However, there is no water on any of the other planets nor is there any water on the moon that you see at night. The essentials for living things are only available on earth.
Many events on earth make it possible for us to live. If even only one of these events doesn't take place, no living thing would be left on earth. So, is it possible that these thousands of events have come together spontaneously and formed such a place as earth? Of course not. Not even one of these events could happen by chance. Allah has created earth for human beings. And, because of this, earth is the most suitable place for us.