The Qur’an says God is the one who created everything and showed and told it what to do and how to do it.
Rabbuna Alladhee A'twaa Kulla Shay-in Khalqwahu Thumma Hadaa.
So, everything in the world does precisely that. It does what it has been created, designed and programmed to do.
Except us humans – along with the Jinn, another species of God’s creation – who have been granted a measure of autonomy in our decision-making and in our actions. [...]