Translate the following sentence into Turkish.
It was he who loaned me money to buy the mine, which I promptly paid back.
Madeni satın almam için gereken parayı bana ödünç veren oydu. Derhal geri ödemiştim.