William Shakespeare said this quote

Sweet are the uses of adversityWhich, like the toad, ugly and venomous,Wears yet a precious jewel in his head.