“In Him we have obtained an inheritance, having been predestined according to the purpose of Him who works all things according to the counsel of His will, so that we who were the first to hope in Christ might be to the praise of His glory. In Him you also, when you heard the word of truth, the gospel of your salvation, and believed in Him, were sealed with the promised Holy Spirit, who is the guarantee of our inheritance until we acquire possession of it, to the praise of his glory.” Ephesians 1:11-14
“The Spirit himself bears witness with our spirit that we are children of God, and if children, then heirs—heirs of God and fellow heirs with Christ, provided we suffer with him in order that we may also be glorified with him.” Romans 8:16-17
These verses confirm that it is only those who repent, believe in Jesus and His sacrifice on The Cross, they receive and are sealed with the Holy Spirit.
“And the world is passing away along with its desires, but whoever does the will of God abides forever” 1 John 2:17
“If you know that He is righteous, you may be sure that everyone who practices righteousness has been born of Him.” 1 John 2:29
“He will render (repay) to each one according to his works: to those who by patience in well-doing seek for glory and honor and immortality, He will give eternal life; but for those who are self-seeking and do not obey the truth, but obey unrighteousness, there will be wrath and fury.” Romans 2:6-8
These three verses truly verify that it is only those that do the will of God and practise righteousness are granted eternal life.
“But, O Lord of hosts, who judges righteously, who tests the heart and the mind,…” Jeremiah 11:20 (ESV)
“For you, O God, have tested us; you have tried us as silver is tried.” Psalm 66:10 (ESV)
“the tested genuineness of your faith—more precious than gold that perishes though it is tested by fire—may be found to result in praise and glory and honor at the revelation of Jesus Christ. Though you have not seen him, you love him. Though you do not now see him, you believe in Him and rejoice with joy that is inexpressible and filled with glory, obtaining the outcome of your faith, the salvation of your souls.” 1 Peter 1:7-9
“Blessed is the man who remains steadfast under trial, for when he has stood the test he will receive the crown of life, which God has promised to those who love him.” James 1:12
Note: the above four verses makes it clear that God tests the hearts and minds of true believers.
Faith is what is so very precious to God. And that is why God has to test people to find out if they have genuine faith. That is the biblical truth of the matter.