He denies the kingship of both Jeroboam and of those who reigned in succession over Israel in Samaria, although he himself had expressly said, "For this thing is from me;" and he threatened Solomon himself, who had followed the opinions of foreign women and had impiously dedicated precincts and altars to their objects of worship, that "I will surely tear the kingdom from you and will give it to your servant." What then shall we say? That the God of all is a liar? May it not be so; but we will turn rather to the need to think rightly, considering this. For it is written, "Shall there be evil in... a city, which the Lord has not done?" And by evil he means the affliction. For some things He does according to His own will, but others He allows to happen, punishing some, even if it happens somehow against His will. Since, being able to prevent it, He often allows something to happen providentially, He is said to be the author of these things as well. For example: for we shall now proceed to Solomon himself; for He gave him the ability to build the temple of stone in Jerusalem, He made him wise, and distinguished for incomparable understanding; this was a work of His own will. He allowed his kingdom to be broken, not Himself bringing matters to this point according to His own will, but as it were being silent, even at what was not willed, because of His indignation against him. Therefore, although Jeroboam reigned, and those after him, it was not at all with God's assent. For things that happen as a punishment out of anger toward some have a different character, and would not by chance be understood to be of the same sort as those that are truly according to His will.
Source: Commentary on Hosea