One citation: http://lds.org/scriptures/dc-testament/dc/76.16-24?lang=eng#... All to come forth in the resurrection of the just & unjust, through Christ the worlds are and were created, the inhabitants are sons and daughters of God.
He's quoting from the Doctrine & Covenants (like the Pauline epistles in that they're letters written by someone claiming to speak messages from God, but not like them in that they were written in the 1830s and 40s in America) and it's this more modern scripture that tends to talk about these kind of things. Basically any decent religion will start out with "Be nice to your neighbors" but when you start asking "Why?" it is inevitable going to end up in a discussion about the nature of the universe and its the modern scripture that tends to crystallize that a bit.
The example I was thinking of: http://lds.org/scriptures/dc-testament/dc/29.23-26?lang=eng#...