Also the people who died in this earthquake are mostly Shaheed because anyone who dies due to a building falling on them is one of the Shaheeds the prophet Rasulallah (ﷺ) told us about. We know the reward for the tank of Shaheed. No one will want to come back to this world after going Jannah other than the Shaheed so he can be Shaheed many times more. This world is a test for the Muslims.I can't really say if it is or not a punishment from Allah. Earthquakes can also be sign of Akhirah coming near.
But Earthquakes can also be a form of punishment which Allah can give according to Islamic Faith. Earthquakes are also signs of Allah of being the Mighty Creator and in whose powers is life and death.
Abu Musa reported: The Messenger of Allah, peace and blessings be upon him, said, “This nation of mine has been granted mercy. Their punishment is not in the Hereafter. Their punishment is in the world through persecution, earthquakes, and slaughter.”
Source: Sunan Abī Dāwūd 4278
Grade: Sahih (authentic) according to Al-Albani
For me, Earthquakes on Muslims is a trial by Allah for patience and to get forgiveness through calamity.
Jabir narrated that the Prophet (s.a.w) said:
"On the Day of Judgement, when the people who were tried (in this world) are given their rewards, the people who were pardoned (in life), will wish that their skins had been cut off with scissors while they were in the world."
-Jami` at-Tirmidhi 2402
Even with all the rewards of those who suffered is told to us already through the forum of many Hadiths, there is still people of this forum which think it’s a sign for people to surrender to oppressors like Assad 🤦♂️.