Shaykh Abu Ali Daqqaq (Allah have mercy on him) stood at the entrance of a church and recited,
وَلَوْلَا نِعْمَةُ رَبِّي لَكُنْتُ مِنَ الْمُحْضَرِينَ
And had it not been for the favour of my Lord, I too had been of those haled forth (to doom).
As Saffat 57
Resala e Ainiya
Being a Muslim is great blessing. We should appreciate this and thank Allah for this repeatedly. This thankfulness is a safeguard from kufr.