The Messenger of Allah ﷺ forbade the leasing of land. I asked: (Did he forbid) for gold and silver (i.e. dinars and dirhams)? He replied: If it is against gold and silver, then there is no harm in it. (Using translation from Abū Dāʾūd 3393)
«نَهَى رَسُولُ اللهِ ﷺ عَنْ كِرَاءِ الْأَرْضِ» فَقُلْتُ بِالذَّهَبِ وَالْوَرِقِ؟ فَقَالَ «أَمَّا بِالذَّهَبِ وَالْوَرِقِ فَلَا بَأْسَ بِهِ»