In order to get “right” with God, we must first understand what is “wrong.”
The answer is sin. “There is no one who does good, not even one” (Psalm 14:3). We have rebelled against God’s commands; we “like sheep, have gone astray” (Isaiah 53:6).
The bad news is that the penalty for sin is death.
“The soul who sins is the one who will die” (Ezekiel 18:4). The good news is that a loving God has pursued us in order to bring us salvation. Jesus declared His purpose was “to seek and to save what was lost” (Luke 19:10), and He pronounced His purpose accomplished when He died on the cross with the words, “It is finished!” (John 19:30).
Having a right relationship with God begins with acknowledging your sin.
Next comes a humble confession of your sin to God (Isaiah 57:15). “For it is with your heart that you believe and are justified, and it is with your mouth that you confess and are saved” (Romans 10:10).
This repentance must be accompanied by faith – specifically, faith that Jesus’ sacrificial death and miraculous resurrection qualify Him to be your Savior. “If you confess with your mouth, ‘Jesus is Lord,’ and believe in your heart that God raised him from the dead, you will be saved” (Romans 10:9). Many other passages speak of the necessity of faith, such as John 20:27; Acts 16:31; Galatians 2:16; 3:11, 26; and Ephesians 2:8.
Being right with God is a matter of your response to what God has done on your behalf.
He sent the Savior, He provided the sacrifice to take away your sin (John 1:29), and He offers you the promise: “Everyone who calls on the name of the Lord will be saved” (Acts 2:21).
A beautiful illustration of repentance and forgiveness is the parable of the prodigal son (Luke 15:11-32). The younger son wasted his father’s gift in shameful sin (verse 13). When he acknowledged his wrongdoing, he decided to return home (verse 18). He assumed he would no longer be considered a son (verse 19), but he was wrong. The father loved the returned rebel as much as ever (verse 20). All was forgiven, and a celebration ensued (verse 24). God is good to keep His promises, including the promise to forgive. “The Lord is close to the brokenhearted and saves those who are crushed in spirit” (Psalm 34:18).
If you want to get right with God, here is a sample prayer.
See: THE DILEMMA | SALVATION PRAYER
Related: The Roman Road
How can I not go to hell? http://www.gotquestions.org/not-go-to-hell.html
What does it mean to be a born again Christian?
What is the plan of salvation & way of salvation?