The sole condition for receiving eternal salvation from hell is faith (trust) in the Lord Jesus Christ, Who died a substitutionary death on the cross for man's sin and rose from the dead (John 3:16-18; John 6:47; Acts 16:31).
No act of obedience, preceding or following faith in the Lord Jesus Christ, such as a commitment to obey, sorrow for sin, turning from one's sin, baptism, or submission to the Lordship of Christ, may be added to, or considered as a part of, faith as a condition for receiving eternal salvation (Rom. 4:5; Gal. 2:16; Titus 3:5). This saving transaction between God and the sinner is simply the giving and receiving of a free gift (Eph. 2:8,9; John 4:10; Rev. 22:17).