Four time in 1 Kings 11 the text states that '...(Solomon's) heart was turned away from the Lord and to other gods.' Solomon's 1000 sexual partners caused him to forsake following closely after the Lord and to participate in the worship of those gods his wives and concubines followed. God warned the King that this could happen and the King ignored His counsel...not wise, Solomon!
I am continually astounded that the Lord desires an intimate relationship with His people (with ME!)...even when He knows they will betray Him in the future...as did King Solomon! Jesus also prayed, "I desire that (those) whom You have given Me be with Me where I am..." (Jn 17:24).
While the Lord wants to be with us, sin causes an interruption in my relationship with the Lord....it distracts me from WHO he is and what He has asked of me. Last night, Golden State won the NBA Playoffs and they did it at home. There was a strength and a focus they seemed to gain from being on their home court that they did not posses in Game 4 while in Cleveland and it brought them victory.
The Lord is eager to walk with us, to reveal Himself to us, give us His strength and victory. Our task is to remain un-distracted and focused....but this requires we remain obediently 'at home' with Him.