God does not judge us based on the religion which we belongs to, but he judges us based on how clean our heart looks. It teaches that God has revealed Himself to all people through creation and conscience, so that no one is without some awareness of Him. Even those outside organized religion are still accountable to God, because His truth can be seen in the world and sensed within the human heart.
And again the bible make it clear that salvation is a free gift that is not based on the religion which we belongs to. Many religious people in the Bible were rebuked for empty rituals, while some who were not part of formal religious structures were commended for their faith and sincerity. This shows that God values genuine belief, humility, and obedience over labels or affiliations.