['I loaned my friend some money when she was having financial troubles.']
That's really kind of you. Not everyone can or will do that. I do hope she pays you back!
When my friend was having some financial issues, I loaned her some money.