77 According to the laws and constitution of the people, which I have suffered to be established, and should be maintained for the rights and protection of all flesh, according to just and holy principles;
80 And for this purpose have I established the Constitution of this land, by the hands of wise men whom I raised up unto this very purpose, and redeemed the land by the shedding of blood.
https://www.churchofjesuschrist.org/study/ensign/1992/02/the-divinely-inspired-constitution?lang=eng
The United States Constitution was the first written constitution in the world. It has served Americans well, enhancing freedom and prosperity during the changed conditions of more than two hundred years. Frequently copied, it has become the United States’ most important export. After two centuries, every nation in the world except six have adopted written constitutions,2 and the U.S. Constitution was a model for all of them. No wonder modern revelation says that God established the U.S. Constitution and that it “should be maintained for the rights and protection of all flesh, according to just and holy principles.” (D&C 101:77.)
George Washington was perhaps the first to use the word miracle in describing the drafting of the U.S. Constitution. In a 1788 letter to Lafayette, he said:
“It appears to me, then, little short of a miracle, that the delegates from so many different states (which states you know are also different from each other in their manners, circumstances, and prejudices) should unite in forming a system of national Government, so little liable to well-founded objections.”3