Free/Rescue me from my troubles/difficulties [MET] in order that I may thank you. If you do that, when I am with godly/righteous people, I will praise you for having been very good to me.