One scripture that answers this question is in Romans 2:11 - 16 which says-. For there is no partiality with God. For as many as have sinned without the law ( Gods laws given to the first people in the Bible-Adam, Eve, and their descendants, Hebrews etc), will also perish without law, and as many as have sinned in the law will be judged by the law for not the hearers of the law are just in the sight of God, but the doers of the law will be justified: for when the Gentiles(non-Hebrew), who do not have the law, by nature do the things in the law, these, although not having the law, are a law to themselves, who show the work of the law written in their hearts, their conscience also bearing witness, and between themselves their thoughts accusing of else excusing them, in the day when God will judge the secrets of men by Jesus Christ, according to my gospel. Note that the words in brackets are mine.. . This is saying that if people who have not access to Gods written word are judged according to what is in their heart. We all have a knowledge of good and evil as according to the bible we are all descendants of Eve and that is what your question is about, that is, what God says and the only source we have is the bible. God is aware that all people on the earth are not going to receive the written word of God before their death, He is not inconsiderate as many people believe. The trouble is people just do not know enough about God and therefore make rash decisions about him.