There are some wonderful prayers in the Psalms which we can pray for ourselves. I’ve just read the following two which I found very useful:
Search me, O God, and know my heart, test me and know my anxious thoughts. See if there is any offensive way in me, and lead me in the way everlasting. (Psalm 139:23-24)
Set a guard over my mouth, O Lord; keep watch over the door of my lips. Let not my heart be drawn to what is evil, to take part in wicked deeds with men who are evildoers; let me not eat of their delicacies. (Psalm 141:3-4)