Sure Al-Ankaboot

29:2

أَحَسِبَ ٱلنَّاسُ أَن يُتْرَكُوٓا۟ أَن يَقُولُوٓا۟ ءَامَنَّا وَهُمْ لَا يُفْتَنُونَ

Meinen die Menschen, daß sie in Ruhe gelassen werden, (nur) weil sie sagen: "Wir glauben", ohne daß sie geprüft werden?

Tafsir 29:2

Did the people think that by saying: “I brought faith in Allah”, they will be left without any test to clarify the reality of what they said: are they true believers? The matter is not as they thought.