Dear lord, will you please forgive me I have sinned and now she is pregnant
I
God: I forgive you.
David saw a pretty woman bathing on the roof so he sent out one of his messengers to go and spy on her
you will have a son
I am going to build a temple for all the sins I have done to honor and worship you God
then David went and slept with her
Solomon building a temple
David finds out she is pregnant and realizes that he had sinned and asked God to forgive him and God forgave him
Taking king David’s position
I have given you my spot as king
I am pregnant
David wants to build a temple so everyone can worship God and also for all the sins David has done then God tells him he does not want David to build the temple God said David will have a son named Solomon and he wants Solomon to build the temple
God: do not build a temple one day you will have a son and I want him to build them temple his name will be salmon
After he was old enough he built the temple to praise and worship God as God had told him to do.
Solomon: God I have built the temple as you asked me to do
Finally Solomon had taken the place of king David