Called Unto Liberty, 19th Century Sermons, Joseph Smith Jr.
All kingdoms have a law given;
And there are many kingdoms; for there is no space in the which there is no kingdom; and there is no kingdom in which there is no space, either a greater or a lesser kingdom.
And unto every kingdom is given a law; and unto every law there are certain bounds also and conditions.
All beings who abide not in those conditions are not justified.
Source: Doctrine and Covenants, 88:36-39, 27 December 1832. Joseph Smith Jr. was the first president of the Church of Jesus Christ of Latter-day Saints.