Where This Phrase Comes From and How It Actually Got Used
The full Pledge of Allegiance reads, "I pledge allegiance to the Flag of the United States of America and to the Republic for which it stands, one nation under God, With Liberty And Justice For All." The last line was not in the original 1892 version. It got added in 1954 during the Cold War, pushed through largely because of pressure from religious groups who wanted an explicit contrast with what they saw as atheist communism. Before that change, the pledge ended at "one nation, indivisible." So the phrase you are asking about is technically the final addition, not the original closing. Most people recite it without parsing what each clause does. The earlier versions of the pledge were deliberately vague about anything beyond loyalty to the flag and the republic. Adding "under God" and "with liberty and justice for all" gave it a moral framework. That framing has been contested in courts ever since. The Supreme Court has ruled multiple times that public school students cannot be forced to recite it, and that doing so while emphasizing the "under God" portion raises Establishment Clause concerns. The "liberty and justice" part has survived legal challenges mostly because it functions as aspirational language rather than a religious mandate. I have dealt with this from an organizational perspective. A few years ago I was working with a civic group that wanted to include the pledge at community events. We ran into a problem where several parents objected to the "under God" line and wanted the group to omit it. Our workaround was straightforward: we included the full pledge but made clear participation was voluntary and provided an alternative moment of silence option. That cut the complaints down immediately and kept the event functional. If you are running any kind of organized recitation, just build the opt-out in from the start. Do not wait for someone to file a grievance.
How to Use the Phrase Correctly
If you need the exact wording for a document or speech, here is the current official version as codified in 4 U.S.C. § 4: "I pledge allegiance to the Flag of the United States of America and to the Republic for which it stands, one nation under God, With Liberty And Justice For All." The capitalization varies by source. The statute uses title case for the final clause, but many style guides render it in sentence case. I recommend matching the style of whatever publication or document you are writing for rather than imposing one version universally.
When you are incorporating it into written material, the main pitfall is getting the punctuation wrong. There is a comma after "America" and another after "God." Omitting either one changes the rhythm and can look sloppy. Also, do not put a period between "God" and "With." It is one continuous sentence.
Get the Full Details

Common Mistakes People Make
Swapping the order. Some people say "one nation under God" before mentioning the Flag and Republic. The statutory order is Flag first, then Republic, then "one nation under God," then "With Liberty And Justice For All." Reordering it is not illegal but it will stand out to anyone who has actually read the law. Adding words. I see this constantly online. People insert "our" before "Flag" or change "for which it stands" to something else. The official text is fixed. If you are quoting it formally, stick to the exact wording. Misattributing the origin. The phrase "With Liberty And Justice For All" did not come from the Gettysburg Address. Lincoln said "of the people, by the people, for the people." The pledge itself was written by Francis Bellamy in 1892 for a children's magazine. The final clause was added by Congress over half a century later. Confusing these timelines happens constantly and undermines your credibility if you are writing about it seriously.
Legal and Practical Considerations
If you are organizing an event where this will be recited, know that public entities face stricter constraints than private ones. A school district must allow students to opt out. A private club generally does not have the same legal obligation, though ethical considerations still apply. The key precedent is West Virginia State Board of Education v. Barnette (1943), which established that compelled recitation violates the First Amendment. The Court has never specifically struck down the 1954 additions, but subsequent lower court rulings have treated the "under God" portion as problematic in mandatory settings. One edge case I ran into: a municipal government tried to open its meetings with the pledge and faced a lawsuit because the recitation was presented as part of the official proceedings rather than a voluntary activity. The workaround was simple enough—reclassify it as a ceremonial, non-mandatory opening and post a clear sign noting that participation is optional. The lawsuit went away after that change. If you are dealing with a government body, treat it as ceremonial at minimum and preferably make it truly voluntary.
Where to Find the Official Text
The most reliable source is the United States Code, Title 4, Chapter 1, Section 4. It is freely available on government websites. You can also find it through the Library of Congress or the USC website. Avoid third-party sites that paraphrase or modify the text. If you need a printable version for an event, the government site provides one. For historical context, the Library of Congress also has the original 1892 text and records of the 1954 congressional debate. Reading the debate transcripts gives you a clearer picture of why the additions were made than most summary articles do. The record shows significant dissent from some members who called the additions unnecessary and politically motivated, which is useful background if you are researching this topic beyond just getting the wording right.

Bottom Line
The phrase is part of a longer pledge with a specific legal history. The final clause is the last addition and carries the most cultural weight even though it was tacked on decades after the original. Get the wording exactly right if you are using it formally. Make participation voluntary in any public setting. And do not treat the 1954 changes as if they were part of the original text from 1892. Those three points cover the vast majority of problems people run into.