The ruling on borrowing gold
It is permissible to lend gold by weight in kilograms or in coin form (gold coins). He will return to you, counting out pounds and so on, and any other pieces of gold and so on, if there are any, equal to the weight of what he took. There is, in sha Allah, nothing prohibited in this. Cooperation between Muslims is desired. For you there will be only the gold that you lent, whether its price has increased or decreased.
Reference: Al-Lajnah al-Da’imah: 2730