Я позичив своєму приятелеві трохи грошей.

[details=“English Translation”]I lent my friend some money.[/details] Wiktionary says the verb is “borrowed”, not “lent”. Which direction is the borrowing?

The word has both meanings. Here the dative case is used which establishes that the friend is the recipient of the action. In the reverse you would use У + genitive case.