Everything in this universe obeys Allah’s command.
‘وَلِلَّهِ يَسْجُدُ مَا فِي السَّمَاوَاتِ وَمَا فِي الْأَرْضِ مِن دَابَّةٍ وَالْمَلَائِكَةُ وَهُمْ لَا يَسْتَكْبِرُونَ’
And to Allah prostrates whatever is in the heavens and whatever is on the earth of creatures, and the angels [as well], and they are not arrogant.
Think about it- the sun gives off light and heat by His command, the wind blows by His command, the river flows by His command, the waves of the sea hit the shore by His command, the birds sing His praises and follow His command; there is absolutely nothing that doesn’t go according to His commands or doesn’t praise Him in its own way.
Had it not been that way , then the fierce river could have engulfed Musa AS and drowned him while he was in his most helpless state, the state of a baby. And the sea wouldn’t drown Firaun while he was in his most powerful state. The fire woudn’t have been cool for Ibrahim AS when he was thrown into it. The belly of the whale would have digested Yunus AS.
Such is what happens when we stay with Allah swt and follow His commands and worship Him with sincerity- The sciences of the world follow His orders to be on our side, saving us from the shackles of this Dunya :’)