Who said neither a borrower nor a lender be?

In William Shakespeare's play Hamlet,

Polonius is speaking to his son Laertes who is leaving to go to University in Paris in act 1, scene iii when, in the course of giving him advice on how to live and behave himself while abroad, he says....

Neither a borrower nor a lender be;

For loan oft loses both itself and friend

And borrowing dulls the edge of husbandry.


He did, but he was quoting Shakespeare. Hamlet Act I scene III Polonius is giving his son Laertes advice.