(Indeed (many) Messengers were mocked before you, but the scoffers were surrounded by what they used to mock.) meaning, the punishment which they thought would never come to pass. This is like the Ayah:
خُلِقَ الْإِنسَانُ مِنْ عَجَلٍ (Man is made of haste. - 21:37). عَجَل ('ajal) means haste or hurry. The word is used in situations when one desires things to happen before their time, and this trait is bad by its very nature. In another place also the word is used to denote human weakness. For instance وَكَانَ الْإِنسَانُ عَجُولًا i.e. Man is prone to haste - 17:11, meaning that he is very impatient. When Sayyidna Musa (علیہ السلام) went to the mount Tur in a hurry leaving his people behind, he was censured by Allah Ta` ala.
Prophets (علیہم السلام) and the devout people who try to excel each other in the performance of righteous deeds have been commended and their zeal to do good deeds does not constitute haste and hurry because they do not try to do these deeds before their time. In fact they do the deeds on time, but try to excel each other in quantity and quality.
The people of Arabia, although believers in the life hereafter, denied that concept of the Hereafter, as described by the Prophet Muhammad. They were proud to be followers of a religion which guaranteed their success. When the Prophet contradicted this firm belief of theirs, they became incensed. Making a show of fearlessness, they said, ‘Show us the retribution of God with which you are threatening us.’ God says that their haste was entirely due to the fact that they were still in the process of being tested, and as such, were distanced from God’s retribution. But when this period of respite ended and they were overwhelmed by God’s punishment, it would dawn on them that they had committed a huge blunder in not taking the Prophet’s words seriously.
Uthmani text of the Madinah mushaf (King Fahd Complex). Translation: Saheeh International. Tafsir via Quran.com.