Surah Ghafir 40:83
فَلَمَّا جَآءَتْهُمْ رُسُلُهُم بِٱلْبَيِّنَـٰتِ فَرِحُوا۟ بِمَا عِندَهُم مِّنَ ٱلْعِلْمِ وَحَاقَ بِهِم مَّا كَانُوا۟ بِهِۦ يَسْتَهْزِءُونَ
And when their messengers came to them with clear proofs, they [merely] rejoiced in what they had of knowledge, but they were enveloped by what they used to ridicule.
Translation: Saheeh International
Tafsir
And when their messengers brought them clear signs manifest miracles they the disbelievers exulted in the knowledge they the messengers possessed an exultation that entailed mockery and amusement as they rejected such knowledge and there besieged befell them that which they used to deride namely the chastisement.
Excerpt from Tafsir al-Jalalayn, commentary on 40:83, via Quran.com. The reader has the full commentary and 9 more tafsirs.