What is the meaning of [When I lent I had a friend; when I asked he was unkind]

This means the same as ‘Lend your money and lose your friend‘. See also
Neither a borrower nor a lender be.