1 Kings 11:39

And I will afflict the descendants of David because of this, but not forever."'

Surrounding context

11:38 Then it shall be, if you heed all that I command you, walk in My ways, and do what is right in My sight, to keep My statutes and My commandments, as My servant David did, then I will be with you and build for you an enduring house, as I built for David, and will give Israel to you.

11:39 And I will afflict the descendants of David because of this, but not forever."'

11:40 Solomon therefore sought to kill Jeroboam. But Jeroboam arose and fled to Egypt, to Shishak king of Egypt, and was in Egypt until the death of Solomon.

Translation and sources