Do you not find this approach on Jehovah’s part heartwarming? He did not force David to confess but simply had Nathan present the king with a story that illustrated the badness of his sins.
فَهُوَ لَمْ يُجْبِرْ دَاوُدَ أَنْ يَعْتَرِفَ بِخَطِيَّتِهِ ،‏ بَلْ طَلَبَ مِنْ نَاثَانَ أَنْ يُخْبِرَهُ قِصَّةً تُظْهِرُ لَهُ فَدَاحَةَ فَعْلَتِهِ .‏ ‏