Jesus answers his prayer with, “Why do you call me ‘Lord, Lord’ and not do what I say?”
Prayer is wonderful as prologue to obedience to God. But as a preventive measure against obedience to, say, the fifth commandment, not so much.
Pray. Then act. Ora *et* labora.