Lend only what you can lose
Before lending to a friend, treat the sum as already given away and lend only what you could lose without resentment. Repayment then becomes a bonus rather than a debt to be pursued, so the friendship survives a default. Chasing a loan from a friend usually costs both the money and the relationship.