The exact origins of this simple nursery rhyme are not known but Beatrix Potter’s story “The Tale of Mrs. Tittlemouse”, published in 1910 might have inspired it.
“Little Tommy Tittlemouse” Lyrics
Little Tommy Tittlemouse
Lived in a little house,
He caught fishes
In other men’s ditches.