How can I lose my negative thoughts?

I always think negatively about everything I do or the people around me, even at work or other things. I know it’s wrong to think negatively. I want to change and ask the Lord to forgive all my sins. And serve him.
How can I lose these negative thoughts?