The LORD … had appeared to him twice (1 Kings 3:5–15; 9:1–9): Each time, God reminded Solomon to stay faithful. When Solomon ignored God's warning about worshiping other gods, he broke the first commandment (Exodus 20:3) and God's agreements with Moses and David.