The people back then were familiar with Ad and Thamud, and references were made regarding them in the Glorious Quran and Hadiths.
Dedicated to both Thameem & Vishesh Deewano ko aate hain kya kya bahaane khuda bhi na jaane tou hum kaise jaane jab koi baath bigad jaye