Quoting a verse in isolation does not provide the whole context. Do the People of God today recognise the signs of their sin of having turned away from God and God's promised response to their sin of turning away from Him and worshiping their idols instead.
I Kings 9:1-9: - God's Second Appearance to Solomon
(2 Chron 7:12-22)
9:1 And it came to pass, when Solomon had finished building the house of the Lord and the king's house, and all Solomon's desire which he wanted to do, 2 that the Lord appeared to Solomon the second time, as He had appeared to him at Gibeon. 3 And the Lord said to him: "I have heard your prayer and your supplication that you have made before Me; I have consecrated this house which you have built to put My name there forever, and My eyes and My heart will be there perpetually. 4 Now if you walk before Me as your father David walked, in integrity of heart and in uprightness, to do according to all that I have commanded you, and if you keep My statutes and My judgments, 5 then I will establish the throne of your kingdom over Israel forever, as I promised David your father, saying, 'You shall not fail to have a man on the throne of Israel.' 6 But if you or your sons at all turn from following Me, and do not keep My commandments and My statutes which I have set before you, but go and serve other gods and worship them, 7 then I will cut off Israel from the land which I have given them; and this house which I have consecrated for My name I will cast out of My sight. Israel will be a proverb and a byword among all peoples. 8 And as for this house, which is exalted, everyone who passes by it will be astonished and will hiss, and say, 'Why has the Lord done thus to this land and to this house?' 9 Then they will answer, 'Because they forsook the Lord their God, who brought their fathers out of the land of Egypt, and have embraced other gods, and worshiped them and served them; therefore, the Lord has brought all this calamity on them.'"
2 Chronicles 7:12-22: - God's Second Appearance to Solomon
(1 Kings 9:1-9)
12 Then the Lord appeared to Solomon by night and said to him: "I have heard your prayer and have chosen this place for Myself as a house of sacrifice. 13 When I shut up heaven and there is no rain, or command the locusts to devour the land, or send pestilence among My people, 14 if My people who are called by My name will humble themselves, and pray and seek My face, and turn from their wicked ways, then I will hear from heaven, and will forgive their sin and heal their land. 15 Now My eyes will be open and My ears attentive to prayer made in this place. 16 For now I have chosen and sanctified this house, that My name may be there forever; and My eyes and My heart will be there perpetually. 17 As for you, if you walk before Me as your father David walked, and do according to all that I have commanded you, and if you keep My statutes and My judgments, 18 then I will establish the throne of your kingdom, as I covenanted with David your father, saying, 'You shall not fail to have a man as ruler in Israel.'
19 "But if you turn away and forsake My statutes and My commandments which I have set before you, and go and serve other gods, and worship them, 20 then I will uproot them from My land which I have given them; and this house which I have sanctified for My name I will cast out of My sight, and will make it a proverb and a byword among all peoples.
21 "And as for this house, which is exalted, everyone who passes by it will be astonished and say, 'Why has the Lord done thus to this land and this house?' 22 Then they will answer, 'Because they forsook the Lord God of their fathers, who brought them out of the land of Egypt, and embraced other gods, and worshiped them and served them; therefore, He has brought all this calamity on them.'"
The primary sin I see is the "acting God like sin" so as to fix the perceived problems that are being raised up against God's people in an effort by God draw them back to Himself. This sin of saying that we do not need God and can fix our problems ourselves.
Shalom