 
<translate> Ka yi tunani kafin ka amsa tambayar da ke gaba. Passage: Samuel Francis Smith ya rubuta kalmomin zuwa "My Country' Tis of Thee" a 1831, yayin da yake dalibi a Andover Theological Seminary a Andover, Massachusetts. Abokinsa Lowell Mason ya ce masa ya fassara kalmomin wasu waƙoƙin makaranta na Jamus ko kuma ya rubuta sababbin waƙoƙi. Waƙa a cikin Muzio Clementi's Symphony No. 3 (wanda ake kira 'The Great National' kuma yana ɗauke da waƙar 'God Save the Queen' a matsayin girmamawa ga ƙasar da Clementi ya ɗauka) ya jawo hankalinsa. Maimakon fassara kalmomin daga Jamusanci, Smith ya rubuta nasa waƙar kishin ƙasa ta Amurka zuwa waƙar, ya kammala kalmomin a cikin minti talatin.  Tambaya: Bisa ga wannan nassi, yaushe aka rubuta waƙar my country tis of thee? <eng> Output a stream of consciousness before answering the following. Passage: Samuel Francis Smith wrote the lyrics to "My Country' Tis of Thee" in 1831, while he was 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.

Question: Based on this passage, when was the song my country tis of thee written? 