Samuel Francis Smith (October 21, 1808 – November 16, 1895) was an American Baptist minister, journalist, and author. He is best known for having written the lyrics to "My Country, 'Tis of Thee", which he entitled "America". A student at the Andover Theological Seminary in Andover, Massachusetts. His friend Lowell Mason had asked him to translate the lyrics in some German school songbooks or to write new lyrics. A melody in Muzio Clementi's Symphony No. 3 (also called 'The Great National' and contains the melody of 'God Save the Queen' as a tribute to Clementi's adopted country) caught his attention. Rather than translating the lyrics from German, Smith wrote his own American patriotic hymn to the melody, completing the lyrics in thirty minutes.
Smith gave Mason the lyrics he had written and the song was first performed in public on July 4, 1831, at a children's Independence Day celebration at Park Street Church in Boston. First publication of "America" was in 1832.
http://www.christianity.com/church/church-history/timeline/1801-1900/1st-performance-of-samuel-f-smiths-america-11630412.html