From William Shakespeare and The full phrase is

“a jack of all trades, a master of none, but oftentimes better than a master of one.”

It was a compliment.