"For this cause everyone who is godly shall pray to You In a time when You may be found; Surely in a flood of great waters They shall not come near him."
Note the following:
First, the ungodly do not really pray to God. Being lost in sin keeps the supposed prayers of the ungodly--besides a true prayer of confession of sin and request for salvation from reaching God. Instead of being true prayers to God, these so-called prayers are to god’s the ungodly imagine, for things they would have done for them while they still reject Christ.
Second, by contrast, the godly pray to God, the one and only true and living God, the God of the Bible. Why are the godly here instructed to pray to God “when He may be found”? Is God not always to be found by the godly? Yes, but note the context of this Psalm: it is about confession of sin. Let the godly be instructed to confess our sins to God straight away, without delay. Why? Because the longer we dismiss our sins by a lack of confession, we are apt to dismiss our sins and become content to live in a state of broken fellowship with God.
Lastly, Proverbs 1:23-33 warns those who do not cry out to God for grace and to receive His forgiveness by faith in Christ, may well cry out when it is too late. On that day, and no one knows when it may come, that one will call out only to hear God refuse to hear, referring him to cry out to the gods he preferred over the God of the Bible for so long.
Please read Proverbs 1:23-33. It is rather scary.