(So the earthquake seized them and they lay (dead), prostrate in their homes) Allah said that the earthquake shook them, as punishment for threatening to expel Shu`ayb and his followers. Allah mentioned their end again in Suah Hud,
In verse 92, the fate of the people of Sayyidna Shu'aib (علیہ السلام) has been cited as a lesson - which is the real purpose behind the description of this event. It was said: الَّذِينَ كَذَّبُوا شُعَيْبًا كَأَن لَّمْ يَغْنَوْا فِيهَا (Those who belied Shu'aib are as if they never dwelt there). One of the meanings of the word: غِنیٰ (ghina) is to live at some place in peace and comfort. At this place, this is the meaning intended. The sense of the sentence is that the homes where they lived in peace and comfort, turned so deserted after this punishment as if peace and comfort had never existed there. Then, it was said: الَّذِينَ كَذَّبُوا شُعَيْبًا كَانُوا هُمُ الْخَاسِرِينَ (Those who belied Shu'aib were themselves the losers). The hint given is that these were the people threatening to throw Sayyidna Shu'aib (علیہ السلام) and his believing companions out from their city, but, in the end, the loss hit none but them.
Tazkirul Quran
Maulana Wahiduddin KhanOn ayahs 92–94
Shu‘ayb’s community was not guilty of denying God, but of misrepresenting Him, i.e. it had attributed to God a religion which was not sent by Him. This has been the position of the communities of all the prophets. The communities of the prophets were no different from those to whom God had earlier revealed His religion. But, by means of self-made changes and additions, they made it into something else. They changed the religion of God into the religion of their desires and started calling it the religion of God. The religious leaders of today, who have the support of the people and are in power, do realize that they cannot argue with the prophets, as they would not succeed. But since they do not want someone to usurp them of their importance, they look for a way to silence them. Allowances can be made for a person so long as the Truth is not clear to him. But after the Truth has been made clear, and if a man still chooses to be arrogant, he loses any right to sympathy. In this world, punishment is given on this basis; and on this same basis, punishment will be decided according to the guilt of the people in the Hereafter.
Uthmani text of the Madinah mushaf (King Fahd Complex). Translation: Saheeh International. Tafsir via Quran.com.