## his heart had turned away from him ##

That is, "Solomon's heart had turned away from Yahweh." AT: "Solomon stopped worshiping Yahweh" (See: [[rc://en/ta/man/translate/figs-idiom]])

## he had appeared to him twice ##

That is, "Yahweh had appeared to Solomon twice."