He almost would have misled us from our gods had we not been steadfast in [worship of] them." But they are going to know, when they see the punishment, who is farthest astray in [his] way.
(And when the disbelievers see you, they take you not except for mockery) (21:36), which means that they tried to find faults and shortcomings in him. Here Allah says:
(And when they see you, they treat you only in mockery (saying): "Is this the one whom Allah has sent as a Messenger") i.e., they said this by way of belittling and trying to undermine him, so Allah put them in their place, and said:
In the above verses it is mentioned that it had been the common practice of the people through the ages to rebuff the prophets and the message they had brought. In order to give weight to this assertion a few of the well known prophets are mentioned who were rejected by their people and then they were subjected to Allah's wrath and were annihilated completely. By drawing a parallel with the past generations it is elucidated that the pagans of Makkah would not listen to any reason as they were no better than the animals or even worse than that.
It is stated about the people of Sayyidna Nuh (علیہ السلام) that they had rejected the prophets, although they had neither seen the past prophets nor had they rejected them. at is actually meant here is that while denying Sayyidna Nuh (علیہ السلام) they had by implication rejected all the prophets, because the principals of religion expounded by all prophets are essentially the same. Hence rejection of one prophet is tantamount to rejection of all.
أَصْحَابَ الرَّسِّ (People of Rass - 25:38). In Arabic رَس (Rass) means unlined well. Neither Qur'an nor any authentic tradition describes these people in any detail. Whatever information is available about them is through Israelite traditions, which differ from one another. It is more likely that the remaining people of Thamud had settled down near a well. It is not mentioned in the Qur'an or any tradition as to how they were tormented. (Bayan u1-Qur'an)
Tazkirul Quran
Maulana Wahiduddin Khan
The response of those who fail to accept the truth shows that the reason for their being steadfast in their faith, was their prejudice and not the force of any argument. They had become defenceless in the matter of arguments, but they adhered to the religion of their forefathers on the strength of prejudice. This is the position of the majority of the people. The majority are simply swayed by prejudice, though they profess that their case rests on sound arguments. There are two methods of opposing a mission. One is to reject it on the basis of arguments, while the other is to ridicule it. The first method is legitimate, while the second is quite improper. Those who heap scorn on a mission, actually demonstrate that they have lost the game when it comes to arguments, and that they simply want to cover up their defeat by falling back on ridicule.
Uthmani text of the Madinah mushaf (King Fahd Complex). Translation: Saheeh International. Tafsir via Quran.com.