Old Testament believers

Did people who died before Jesus died on the cross go to heaven if they had faith?

Yes. Enjoying salvation is matter of trusting in the Savior who was going to come into the world (in the case of Old Testament believers) or trusting in the Savior who has come into the world (in the case of New Testament believers). It made no difference if people lived and died before Jesus carried out his redeeming work on this earth. If people had faith in the promised Messiah in their hearts, they enjoyed forgiveness in this life and entered God’s presence in heaven upon death.

Consider what the writer to the Hebrews said about Abraham and other Old Testament believers: “All these people were still living by faith when they died. They did not receive the things promised; they only saw them and welcomed them from a distance, admitting that they were foreigners and strangers on earth. People who say such things show that they are looking for a country of their own. If they had been thinking of the country they had left, they would have had opportunity to return. Instead, they were longing for a better country—a heavenly one. Therefore God is not ashamed to be called their God, for he has prepared a city for them” (Hebrews 11:13-16).

Old Testament and New Testament believers form the group the apostle John saw in one of the visions God gave him (Revelation 7:1-8).