In the execution of the Temple work a wish cherished by David was fulfilled. He was averse to having the gold which he had taken as booty from the heathen places of worship during his campaigns used for the sanctuary at Jerusalem, because he feared that the heathen would boast, at the destruction of the Temple, that their gods were courageous, and were taking revenge by wrecking the house of the Israelitish God. Fortunately Solomon was so rich that there was no need to resort to the gold inherited from his father, and so David's wish was fulfilled.
David Refused to Use Conquered Gold for God's House
Legends of the Jews 5:103