With ominous tone we begin reading, The fool had said in his heart, "No God". Okay, there are several psalms that maybe took a little thought to see Jesus praying as a man, but would Jesus really pray this psalm? Take a look at the second verse.
The Lord looked down from heaven upon the children of men, to see if there were any that would understand, and seek God.
Psalms 14:2 GNV
So yes, here in the flesh is God actually come down from heaven in human flesh and body. It's not just God coming down to see as in the days of Noah the wickedness of men. It is God come down, Emmanuel, literally God with us, and walking among us in everything that is human. That alone would drive Him to prayer. And in not finding any that are good this psalm states:
There they shall be taken with fear, because God is in the generation of the just.
Psalms 14:5 GNV
First in this psalm it says there is none that does good, yet here it says God is in the generation of the just. How does that work? From the giving of the ten words, or ten commandments as we know them as given in Exodus 20, emphasized in Exodus 34, but then 40 years later a refresher is given in Deuteronomy 5 before the children of Israel entered the land Promised Abraham. In particular is the warning about making idols:
Thou shalt neither bow thy self unto them, nor serve them: for I the Lord thy God am a jealous God, visiting the iniquity of the fathers upon the children, even unto the third and fourth generation of them that hate me: And shewing mercy unto thousands of them that love me, and keep my commandements.
Deuteronomy 5:9 - 10 GNV
So even though there are none that does good, yet there can be a generation of the just among them. If this psalm was a prayer of Jesus it definitely became a reality of His being, an answered prayer. When Jesus told the Pharisees why He ate with sinners. He said it was the sick who needed a physician He came to, not those who thought of themselves as being healthy. Indeed it was those He went to who knew they needed Him that became His followers, His disciples, the generation of the just, those of the thousands to whom He shewed mercy. As Peter later wrote, You are a chosen generation. It would take the greater part of the gospels to write out the many times Jesus would be seen shewing that mercy on thousands, the results of praying a psalm like this. Thousands you might ask? Certainly there was the feeding of the five thousand and feeding of the four thousand, but did they all follow Jesus Christ at that time? How many later at Passover would call out "Crucify Him!" But looking forward there were only 120 together going into Pentecost not even two months later. At that time five thousand came to Him as a living, risen, ascended Christ because of His ministry in and through eleven disciples. The longest prayer we do read in Jesus life was John 17. The answer to His prayers, that written prayer, then if He prayed Psalm 14 as a prayer, and certainly other times of prayer came to further fruition to His ministry as a human on earth, a generation of the just.