Quran 29:10 from Surah Al-Ankaboot on Divine Marvels.
وَمِنَ ٱلنَّاسِ مَن يَقُولُ ءَامَنَّا بِٱللَّهِ فَإِذَآ أُوذِيَ فِي ٱللَّهِ جَعَلَ فِتۡنَةَ ٱلنَّاسِ كَعَذَابِ ٱللَّهِۖ وَلَئِن جَآءَ نَصۡرٞ مِّن رَّبِّكَ لَيَقُولُنَّ إِنَّا كُنَّا مَعَكُمۡۚ أَوَلَيۡسَ ٱللَّهُ بِأَعۡلَمَ بِمَا فِي صُدُورِ ٱلۡعَٰلَمِينَ
English translation: And of the people (is he) who says We believe in Allah But when he is harmed in (the Way of) Allah he considers (the) trial (of) the people as (the) punishment (of) Allah But if comes victory from your Lord surely they say Indeed, we were with you Is not Allah most knowing of what (is) in (the) breasts (of) the worlds
Transliteration: wamina al-nasi man yaqulu amanna bil-lahi fa-idha udhiya fi al-lahi ja'ala fit'nata al-nasi ka'adhabi al-lahi wala-in jaa nasrun min rabbika layaqulunna inna kunna ma'akum awalaysa al-lahu bi-a'lama bima fi suduri al-'alamina