MP,
Context is important.
Chapter 7 isn't about prayer, but taking responsibility for ones own choices, choosing whether or not to follow the christian way, and having faith that there are rewards for doing so and accepting that there are penalties for not doing so.