Here's a slightly different version from The Little Mother Goose (1912), illustrated by Jessie Willcox Smith:

Tommy Trot, a man of laws,
Sold his bed and lay upon straws;
Sold the straw, and slept on grass,
To buy his wife a looking-glass.

Thanks and Acknowledgements

This rhyme can be found in A History of Nursery Rhymes (1899) by Percy B. Green.