David was a man after God’s own heart for the Lord said: the LORD has sought for Himself a
man after His own heart, and the LORD has commanded him to be captain over His people
David was also a man who loved justice and righteousness like God; for the foundation of God’s throne is righteousness and justice . The Lord loves righteousness and Justice. So when Nathan told David the story of the ewe lamb of the poor man that the rich man took, the nature of God in him for justice was stirred up, he wanted to avenge the poor man because he had been defrauded. David committed that sexual immorality in the night and did it secretly, he thought only a few people were aware of that sexual immorality that he committed . For in the story of David's adultery, it was at evening and David sent messengers to take Bathsheba. David was sure that his messenger would keep it secret. , people often think that God does not see what is done in the dark! however it does not matter to God darkness or light
are the same to God. David later said: Where shall I go from Your Spirit? Or where shall I flee from Your presence? If I go up into Heaven, You are there; if I make my bed in hell, behold, You are there. If I take the wings of the morning and dwell in the furthest parts of the sea; even there shall Your hand lead me, and Your right hand shall hold me. If I say, Surely the darkness shall cover me, even the night shall be light around me. Yea, the darkness does not hide from You; but the night shines as the day; as is the darkness, so is the light to You. So you see, brothers and sisters you and I cannot hide from the presence of the Lord or from His Spirit.