One of my favorite stories from God's Word is of the two criminals who hung on either side of Jesus Christ. Both recognized Jesus as God, but only one dared to surrender to His will. Impending death has a way of bringing reality into razor sharp focus.
And a superscription also was written over him in letters of Greek, and Latin, and Hebrew, THIS IS THE KING OF THE JEWS. And one of the malefactors which were hanged railed on him, saying, If thou be Christ, save thyself and us. But the other answering rebuked him, saying, Dost not thou fear God, seeing thou art in the same condemnation? And we indeed justly; for we receive the due reward of our deeds: but this man hath done nothing amiss. And he said unto Jesus, Lord, remember me when thou comest into thy kingdom. And Jesus said unto him, Verily I say unto thee, To day shalt thou be with me in paradise.
Luke 23:38-43
Well...okay but what if a person doesn't even believe in God or if God is irrelevant to them?