With security and wealth, Solomon can prepare to build a temple. Solomon is able do what David was not. In this case, it is a promise God made to David that is kept.
Error