Quite a few parodies of Old Mother Hubbard go around, but the most common seems to be:
Old mother hubbard went to the cupboard
to get her poor dog a bone
when she leaned over, rover took over
and gave her a bone of his own
That was known in my high school, and has been recorded back to at least 1961 by Sherman.