David and Solomon truly had many wives and concubines, which thing was abominable before me, saith the Lord. Jacob 2:24
David also received amany wives and concubines, and also Solomon and Moses my servants, as also many others of my servants, from the beginning of creation until this time; and in nothing did they sin save in those things which they received not of me.
David's wives and concubines were given unto him of me, by the hand of Nathan, my servant, and others of the prophets who had the ckeys of this power; and in none of these things did he sin against me save in the case of Uriah and his wife; and, therefore he hath fallen from his exaltation, and received his portion; and he shall not inherit them out of the world, for I gave them unto another, saith the Lord. Doctrine and Covenants 132:38-39