According to USHistory the “Pledge of Allegiance” was written in August 1892 by a Francis Bellamy (1855 – 1931) who was at one time a Baptist Minister who later became a Socialist Minister. The Pledge was originally published in the “Youth’s Companion” on September 8, 1892. Bellamy had hoped that the pledge would be used by citizens in Any country. He wrote: “I pledge allegiance to my Flag and the Republic for which it stands, one nation, indivisible, with liberty and justice for all.” The pledge was used in schools and the salute was known as the “Bellamy Salute” later the tradition of placing one’s hand over their heart was implemented.
According to the Masonic Biographies
In 1924, against Bellamy’s wishes, the American Legion and Daughters of the American Revolution pressured the National Flag Conference to replace the words “my flag” with “the Flag of the United States of America.” In 1954, under pressure from the Knights of Columbus, Congress officially added the words “under God.”
It now states: “I pledge allegiance to the flag of the United States of America, and to the republic for which it stands, one nation under God, indivisible, with liberty and justice for all.”
The United States Section 4 of the Flag Code states:
The Pledge of Allegiance to the Flag: “I pledge allegiance to the Flag of the United States of America, and to the Republic for which it stands, one Nation under God, indivisible, with liberty and justice for all.”, should be rendered by standing at attention facing the flag with the right hand over the heart. When not in uniform men should remove any non-religious headdress with their right hand and hold it at the left shoulder, the hand being over the heart. Persons in uniform should remain silent, face the flag, and render the military salute.”