Ask God to forgive you for what you've done. Just as you would with other people, after saying you are sorry you must ask to be forgiven. There is no special prayer you have to pray to earn forgiveness from God. All you have to do is ask him to forgive you, through Jesus Christ, and believe that he will forgive you.