"And [We destroyed] 'Ad and Thamud"—meaning: And We destroyed 'Ad and Thamud. "And it has become clear to you from their dwellings"—meaning: what they saw of their ruins. "And they were endowed with insight"—in their misguidance.
Surah al-'Ankabut from (verse 39 - verse 40).