"Mary Had a Little Lamb" is an English language nursery rhyme of nineteenth-century American origin. It was first published by the Boston publishing firm Marsh, Capen & Lyon, as a poem by Sarah Josepha Hale on May 24, 1830, and was possibly inspired by an actual incident.

There are competing theories on the origin and inspiration of this poem. One holds that John Roulstone wrote the first four lines and that the final twelve lines, less childlike than the first, were composed by Sarah Josepha Hale; others claim that Hale was responsible for the entire poem.

As a young girl, Mary Sawyer (later Mary Tyler) kept a pet lamb that she took to school one day at the suggestion of her brother. A commotion naturally ensued. Mary recalled: "Visiting school that morning was a young man by the name of John Roulstone, a nephew of the Reverend Lemuel Capen, who was then settled in Sterling. It was the custom then for students to prepare for college with ministers, and for this purpose Roulstone was studying with his uncle. The young man was very much pleased with the incident of the lamb; and the next day he rode across the fields on horseback to the little old schoolhouse and handed me a slip of paper which had written upon it the three original stanzas of the poem..."

More Info: en.wikipedia.org