The earliest known version was published in Samuel Arnold's Juvenile Amusements in 1797 with the lyrics:

Where did the nursery rhyme humpty dumpty come from? OK. Let's think. My stream of consciousness:
The relevant information to answer the above question is: The earliest known version was published in Samuel Arnold's Juvenile Amusements in 1797 with the lyrics: The answer is Samuel Arnold 's Juvenile Amusements in 1797.