A man wanted to do evil, but first prayed as usual; and finding himself prevented by God, he was then extremely thankful.
When David wanted to kill Nabal the Carmelite, but was reminded of the divine retribution and abandoned his intention, he was extremely thankful. Again, we know what he did when he forgot God, and how he did not stop until Nathan the Prophet reminded him (cf. I Sam. 25; 2 Sam. 12).
At the times when you remember God, increase your prayers, so that when you forget Him, the Lord may remind you.
When you read Holy Scripture, perceive its hidden meanings. 'For whatever was written in past times was written for our instruction' (Rom. 15:4).
Scripture speaks of faith as 'the substance of things hoped for' (Heb. 11:1), and describes as 'worthless' those who do not know the indwelling of Jesus (cf. 2 Cor. 13:5).