This is a verse that describes the way people use science to reject spirituality.
فَلَمَّا جَاءَتْهُمْ رُسُلُهُمْ بِالْبَيِّنَاتِ فَرِحُوا بِمَا عِنْدَهُمْ مِنَ الْعِلْمِ وَحَاقَ بِهِمْ مَا كَانُوا بِهِ يَسْتَهْزِئُونَ
Then when their Messengers came to them with clear proofs, they were happy with the knowledge they had1 until that which they used to make fun of suddenly surrounded them2. [The Quran, 40:83]
1. In other words, they were too proud to contemplate the existence of Allah, even though they had no proof that Allah doesn’t exist.
2. This is a reference to the way Allah gives a nation some time to find the right path, and when their time is up, He destroys them. After their destruction, they find themselves standing in front of Him, surrounded from all sides by the reality that they rejected, with no way to escape.