This is a question that has been asked by people since the time Jesus walked the earth. The Bible is very clear that the only way to heaven is through Jesus.
Acts 4:10-12 (NIV)
10 then know this, you and all the people of Israel: It is by the name of Jesus Christ of Nazareth, whom you crucified but whom God raised from the dead, that this man stands before you healed. 11 Jesus is
“‘the stone you builders rejected,
which has become the cornerstone.’
12 Salvation is found in no one else, for there is no other name under heaven given to mankind by which we must be saved.”
If Jesus is the only way that a person can find salvation, then what about people who live in the remote places of the earth? Places where it is possible that a person could live their entire life on earth and never hear about Jesus, who He was or what He did? How can a person know about something that they do not know about?
There may be no satisfactory answers to these questions. The Bible is clear about the exclusive claims of Christ. Jesus even actually says this Himself.
John 14:6 (NIV)
6 Jesus answered, “I am the way and the truth and the life. No one comes to the Father except through me.
Yet we also know God is merciful and absolutely just. It would seem to contradict what we know of His nature if He did not account for the disadvantages of those who, through no fault of their own, have never heard of Jesus.
From another perspective we have to say that even those who have heard of Jesus do not deserve to be saved. Salvation is always the result of God’s love for us, not our love for Him. It is His grace, not our efforts, that saves us. The truth is that not a single one of us deserves salvation. It is God, through His grace, who choose to save us through the death of His Son. He does not owe salvation to any one of us.
Still, God’s grace requires a human response. Christians have a responsibility to make Christ known in all the world so people have the opportunity to respond.
Matthew 28:19-20 (NIV)
19 Therefore go and make disciples of all nations, baptizing them in the name of the Father and of the Son and of the Holy Spirit, 20 and teaching them to obey everything I have commanded you. And surely I am with you always, to the very end of the age.”
The truth is that none of us knows what God is thinking so this questions can’t be answered for sure. Ultimately, we need to trust the world justly. If God sees it fit for a person to be saved, He will make sure they are saved.