I have.
My rules for myself are:
Never to ask for it back, after the initial convo that it is a gift and approximately when it will be returned,
Only lend what I can afford to gift or put another way never get back.
Maintain the relationship as-is despite the situation.
I have been asked twice to do this and was able to help. The friend and family member paid me back!