Dalil

Quran Al-'Ankabut 29:2

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

Translation

Do the people think that they will be left to say, "We believe" and they will not be tried?