It's the height of presumptuousness to thank your god for something the god hasn't done yet. That's not a prayer, it's an expectation that your god will obey you. Not only that, but it sounds like you are swearing in a prayer to your god, while thanking him for protecting you from your enemies.
Maybe in 4e. I'm not certain about that edition. In every other edition your god grants you the power and it involves devotion and prayer, as well as doing the will of your god(or ideal in 3e), and 5e is no exception to that.