That is, “And We sent Shuʿayb to Midian,” the well-known and renowned tribe. He commanded them to worship Allah alone, without partner; to believe in the Resurrection, look forward to it, and work toward it. He forbade them from spreading corruption in the land by giving short measure and weight and by striving to waylay travelers. They rejected him, so Allah’s punishment overtook them, and “by morning they lay lifeless in their homes.”
(38–40) “And We destroyed ʿĀd and Thamūd. This has become clear to you from their dwellings. Satan made their deeds seem appealing to them and barred them from the Way, though they were perceptive.”
That is, We dealt likewise with ʿĀd and Thamūd. You know their stories, and the matter has become clear to you from what ⦗631⦘ you see with your own eyes of their dwellings and the ruins they left behind. Their messengers had brought them clear signs that imparted insight, but they rejected them and disputed with them. “Satan made their deeds seem appealing to them,” until they imagined that those deeds were better than what the messengers had brought them.