Ghafir 40:85
فَلَمْ يَكُ يَنفَعُهُمْ إِيمَـٰنُهُمْ لَمَّا رَأَوْا۟ بَأْسَنَا ۖ سُنَّتَ ٱللَّهِ ٱلَّتِى قَدْ خَلَتْ فِى عِبَادِهِۦ ۖ وَخَسِرَ هُنَالِكَ ٱلْكَـٰفِرُونَ
Falam yaku yanfaAAuhum eemanuhum lammaraaw ba/sana sunnata Allahi allatee qad khalat feeAAibadihi wakhasira hunalika alkafiroon
But never did their faith benefit them once they saw Our punishment. [It is] the established way of Allāh which has preceded among His servants. And the disbelievers thereupon lost [all].
But, their profession of faith was not (competent) to benefit them, once they had seen Our punishment - a customary practice of Allah that has been there all along in the matter of His servants - and hence, the disbelievers became the losers.