David said to Solomon his son, Be strong and of good courage, and do it: don't be afraid, nor be dismayed; for Yahweh God, even my God, is with you; he will not fail you, nor forsake you, until all the work for the service of the house of Yahweh is finished.
In a certain sense, of course, the people of Israel were a type of that `kingdom of heaven' which is the Church; but in no sense whatever was the secular, political kingdom of David and Solomon the kingdom of God. The ancient inhabitants of Canaan were not driven out of Palestine, as God commanded; but they were enslaved by Israel.  (See the opening chapters of my commentary on Judges.)