In the following, Solomon and God repeatedly declare that God will inhabit the house built for Him by Solomon "for ever":
1 Kings 8:13
I have surely built thee an house to dwell in, a settled place for thee to abide in
for ever.
1 Kings 9:3
And the Lord said unto him, I have heard thy prayer and thy supplication, that thou hast made before me: I have hallowed this house, which thou hast built, to put my name there
for ever; and mine eyes and mine heart shall be there perpetually.
2 Chronicles 6:2
But I have built an house of habitation for thee, and a place for thy dwelling
for ever.
2 Chronicles 7:16
For now have I chosen and sanctified this house, that my name may be there
for ever: and mine eyes and mine heart shall be there perpetually.
The house which God inhabits is immeasurably greater than any land which Israel might inhabit.
But Solomon's (and God's) "for ever" house long ago vanished.
God Himself subsequently declares and inquires:
Isaiah 66:1
This is what the Lord says:
“Heaven is my throne,
and the earth is my footstool.
Where is the house you will build for me?
Where will my resting place be?
Jesus, Stephen, and Peter subsequently confirm that Solomon's house was never a "for ever" house, being transcended by something immeasurably greater which
is "for ever":
Matthew 16:18
And I say also unto thee, That thou art Peter, and upon this rock
I will build my church; and the gates of hell shall not prevail against it.
Acts 7
47 But Solomon built him an house.
48 Howbeit
the most High dwelleth not in temples made with hands; as saith the prophet,
49 Heaven is my throne, and earth is my footstool: what house will ye build me? saith the Lord: or what is the place of my rest?
1 Peter 2:5
Ye also, as
lively stones, are built up a spiritual house, an holy priesthood, to offer up spiritual sacrifices, acceptable to God by Jesus Christ.
Solomon's "for ever" house was never "for ever", as God and His servants confirm, being transcended by the immeasurably greater "for ever" House of the Church of God.
Israel's land, immeasurably lesser than the House of the Church of God, is not "for ever", being transcended by the infinitely better Country above. (Hebrews 11:16)
You left out the following:
1 Kings 9:6-7: "But if ye shall at all turn from following me, ye or your children, and will not keep my commandments and my statutes which I have set before you, but go and serve other gods, and worship them: Then will I cut off Israel out of the land which I have given them; and this house which I have hallowed for my name, will I cast out of my sight..."
2 Chr. 7:19-20: "But if ye turn away, and for sake my statutes and my commandments, which I have set before you, and shall go and serve other gods, and worship them; Then will I pluck them up by the roots which I have given them; and this house, which I have sanctified for my name, will I cast out of my sight..."
He would remain forever among the people in the Temple that Solomon had built and dedicated to Him if they continued to serve and obey Him. The people of Israel lived more closely in His direct presence than any other nation. But they did not remain faithful and obedient to the Lord their God and just as He said, He cast the Solomon's temple out of His sight just as He said that He would.
So, was God lying? If our doctrine is simply based upon the cited passages alone, it would indeed make Him out to be a liar, but as the following passages declare, despite the judgment they have faced, it would not be the end of them:
Jeremiah 30:11: "...though I make a full end of all nations whither I have scattered the, yet will I not make a full end of thee..."
No other nation or people was ever guaranteed a perpetual existence as the people of Israel and to this day, they as a distinct people, nation, and culture, still abide.
In fact, He has declared His promise of that to be so sure that He said in Jeremiah 31:35-37:
"Thus saith the Lord, which giveth the sun for a light by day, and the ordinances of the moon and the stars for a light by night, which divideth the sea when the waves thereof roar; The Lord of hosts is his name: If those ordinances depart from before me, saith the Lord, then the seed of Israel also shall cease from being a nation before me forever."
God has not lost control over nature and Israel did not cease from being a nation permanently. They were re-established as a nation back in their own land as a sovereign nation and have remained so to this day.
Ezekiel 37:25: "And they shall dwell in the land that I have given unto Jacob my servant, wherein your fathers have dwelt; and they shall dwell therein, even they , and their children, and their children's children forever..."
Amos 9:15: "And I will plant them upon their own land, and they shall no more be pulled up out of their land which I have given them, saith the Lord God."
And of Jerusalem the Lord, though He commanded punishment, He did say, "make not a full end." (Jer. 5:10)
And though Jerusalem has been subject to punishment throughout her history, she continues to abide still which is necessary because Jesus is destined to set His throne therein when He returns to reign upon the earth.
And in that day, there will be a sanctuary in which the Lord will dwell among the people of Israel as written in Ezekiel 37:26-27: "Moreover I will make a covenant of peace with them; it shall be an everlasting covenant with them: and I will place them, and multiply them, and will set my sanctuary in the midst of them for evermore. My tabernacle also shall be with them: yea, I will be their God, and they shall be my people."
For further insight into what this sanctuary and dwelling place will be, read Ezekiel 40-48.
We find that it was always in the mind of God to have a permanent dwelling place within His chosen nation and that day will be fulfilled when Christ returns to reign upon the earth.