The LORD God of Israel had appeared to Solomon twice and warned him not to worship foreign gods. But Solomon disobeyed and did it anyway. This made the LORD very angry,
Then after the time for mourning was over, David sent someone to bring her to the palace. She became David's wife, and they had a son. The LORD was angry at what David had done,
One night while Solomon was in Gibeon, the LORD God appeared to him in a dream and said, “Solomon, ask for anything you want, and I will give it to you.”
The LORD became irritated with Moses and said: What about your brother Aaron, the Levite? I know he is a good speaker. He is already on his way here to visit you, and he will be happy to see you again.
If you do, those people will lead your descendants to worship other gods and to turn their backs on the LORD. That will make him very angry, and he will quickly destroy Israel.