Surah Al-Ankaboot, Verse 10:
Of mankind are some who say: "We believe in Allah," but if they are made to suffer for the sake of Allah, they consider the trial of mankind as Allah’s punishment, and if victory comes from your Lord, (the hypocrites) will say: "Verily! We were with you (helping you)." Is not Allah Best Aware of what is in the breast of the ‘Alamin (mankind and jinns).
(English – Mohsin Khan)