As you pinpointed that a friend lent you some money, I guess the appropriate verb is " to pay back". In formal situations, we prefer "to repay" (a loan). To "give back" means "to refund" or "to reimburse (a person)", mainly used when you get your money back when an article purchased is unsatisfactory.
Hope this helps!