Allah informs us about His might, majesty and pride, meaning that all things submit themselves to Him and every created being - animate and inanimate, as well as the responsible - humans and Jinns, and the angels - all humble themselves before Him. He tells us that everything that has a shadow leaning to the right and the left, i.e., in the morning and the evening, is by its shadow, prostrating to Allah. Mujahid said, "When the sun passes its zenith, everything prostrates to Allah, may He be glorified." This was also said by Qatadah, Ad-Dahhak and others.
لِلَّهِ وَهُمْ
(while they are humble) means, they are in a state of humility. Mujahid also said: "The prostration of every thing is its shadow", and he mentioned the mountains and said that their prostrations are their shadows. Abu Ghalib Ash-Shaybani said: "The waves of the sea are its prayers". It is as if reason is attributed to these inanimate objects when they are described as prostrating, so Allah says:
Even the Punishment of the World is Mercy in Disguise
In the verses cited above, after having mentioned various punishments which could seize disbelievers within this world, it was said in the end: فَإِنَّ رَبَّكُمْ لَرَءُوفٌ رَّحِيمٌ (So, indeed your Lord is Very Kind Very Merciful).
First of all, by using the word: رَبّ (Rabb: Lord) here, the hint given is that all these punishments which overtake human beings in this world are there to warn them as part of the dictates of Divine mercy. After that, by introducing the word: رَءُوفٌ(Ra uf: Kind) headed by the intensifying particle lam) that is, the lam of ta'kid), and thus by placing stress on the fact that Allah Ta’ ala was Very Kind and Very Merciful, the hint given was that warnings sent during the life of the world were, in reality, called for by His intrinsic Kindness and Mercy so that heedless men and women would learn from the warning and correct their deeds (before comes 'the last spasm of mass extinction' they themselves are talking about at the closing of the twentieth century, but are still not ready to learn, believe and correct).
Tazkirul Quran
Maulana Wahiduddin KhanOn ayahs 47–49
This verse pertains to the last stage of the Makkan period when the opponents of the Prophet Muhammad were conspiring to kill him. The Prophet is God’s representative on God’s earth. Therefore, hatching such a conspiracy against a prophet must necessarily be the handiwork of such persons as are absolutely fearless of God’s retribution. The fact is that God is the Possessor of such control over man that He can cause him to be buried deep in the earth if He so desires, or He may wreak vengeance on him at the very place which he considers safe; or God may seize him in the course of his activities and he will not be able to save himself. God may even seize upon him when he is conscious of the risk and fully aware of the situation. In short, God may seize upon man at any time and in any situation. If He sees people doing mischief, yet lets them go unpunished, they should not become fearless, because His restraint is due to His consideration of ‘test’ conditions and not to His being powerless.
Uthmani text of the Madinah mushaf (King Fahd Complex). Translation: Saheeh International. Tafsir via Quran.com.