The Bible tells us about Josiah in 2nd Kings chapter 22, from verse 1 onwards.
This is how you can pray:
Lord, I accept your invitation and give you first place in my life. Please, forgive me where I have offended you. I now desire to do what pleases you. Please help me to do so. Thank you. I love you and trust you. Amen.