So David sent this word to Joab: "Send me Uriah the Hittite."
In the morning David wrote a letter to Joab and sent it with Uriah. In it he wrote, "Put Uriah in the front line where the fighting is fiercest. Then withdraw from him so he will be struck down and die." 2 Samuel 11:6, 14-15
Coverups are usually more disastrous than the actual event being covered up. David's dealing with Uriah is a clear case of this. Rather than dealing with his own sin, David covered it up. Bathsheba knew it. David knew it. And God knew it.
God knew it.
God knows when we're false and when we try to cover our own sinful tracks. Rather than taking the blame for our faults and actions (or inactions), we try to shift blame whenever possible. It's human nature. Adam and Eve tried to point fingers and shift the blame. David did the same. In Adam and Eve's case, God responded by "searching" for them. In David's case he would later send the prophet Nathan. There will come a day "when God shall judge the secrets of man by Jesus Christ according to my gospel" (Romans 2:16). In other words, we're not going to get away with sin or its coverup. They are not a secret to God.
Praise the Lord that He knows our hearts and our actions. Praise HIm that He is there to rescue us from our sin and the coverup it can lead to.