The 1837 edition replaced the preposition in with to, which clearly created a difficult reading. The phrase “to the beginning” appears nowhere else in the text, while there are six other occurrences of “in the beginning”. The 1840 edition restored the correct in, but the 1841 and 1849 British editions continued with the impossible to. Finally, the 1852 LDS edition restored the correct in to the LDS text. What is amazing here is how such a difficult reading continued in the printed editions even when it was clearly a mistake.
Summary: Maintain in Mosiah 7:27 the preposition in that occurs in the phrase “in the beginning”.