What does fronting “Thamūd” in “wa-ammā Thamūdu fahadaynāhum” do?

Rhetorical States of Verbal Complements: Omission, Mention and Preposing