"I would sell camels at Al-Baqi', so I would sell them for Dinar but take in place of them Dirham, and, I would sell for silver and take Dinar in its place. So I went to the Messenger of Allah ﷺ and found him leaving the house of Hafsah. I asked him about that and he said: 'There is no harm in that when it (equals) the price.'" (Using translation from Tirmidhī 1242)
كُنْتُ أَبِيعُ الْإِبِلَ بِالْبَقِيعِ فَأَبِيعُ بِالدَّنَانِيرِ وَآخُذُ مَكَانَهَا الْوَرِقَ وَأَبِيعُ بِالْوَرِقِ فَآخُذُ مَكَانَهَا الدَّنَانِيرَ فَأَتَيْتُ النَّبِيَّ ﷺ فَوَجَدْتُهُ خَارِجًا مِنْ بَيْتِ حَفْصَةَ فَسَأَلْتُهُ عَنْ ذَلِكَ؟ فَقَالَ لَا بَأْسَ بِهِ بِالْقِيمَةِ