And [ We destroyed ] ' Aad and Thamud , and it has become clear to you from their [ ruined ] dwellings . And Satan had made pleasing to them their deeds and averted them from the path , and they were endowed with perception .