I'm rather new to studying the Bible regularly and I'm having a difficulty with King David. Can someone please explain how David could take multiple wives and concubines, have children with them, and still be close to the Lord. It seems to me as though he was living in sin and if anything, should be farther and farther away from the Lord. Or does he grow farther and farther from the Lord and this really leads him to his perhaps greatest sin with Bathsheba?