Abu Al-Minhal said: " I asked Al-Bara bin 'Azib and Zaid bin Arqam and they said: 'We were merchants at the time of the Messenger of Allah (ﷺ) and we asked the Prophet (ﷺ) of Allah about money exchange. He said: "If it is done hand to hand there is nothing wrong with it, but if it is done on credit then it is not right."
Source: sunnah.com
Other translations
Arabic
أَخْبَرَنِي إِبْرَاهِيمُ بْنُ الْحَسَنِ، قَالَ حَدَّثَنَا حَجَّاجٌ، قَالَ قَالَ ابْنُ جُرَيْجٍ أَخْبَرَنِي عَمْرُو بْنُ دِينَارٍ، وَعَامِرُ بْنُ مُصْعَبٍ، أَنَّهُمَا سَمِعَا أَبَا الْمِنْهَالِ، يَقُولُ سَأَلْتُ الْبَرَاءَ بْنَ عَازِبٍ وَزَيْدَ بْنَ أَرْقَمَ فَقَالاَ كُنَّا تَاجِرَيْنِ عَلَى عَهْدِ رَسُولِ اللَّهِ صلى الله عليه وسلم فَسَأَلْنَا نَبِيَّ اللَّهِ صلى الله عليه وسلم عَنِ الصَّرْفِ فَقَالَ " إِنْ كَانَ يَدًا بِيَدٍ فَلاَ بَأْسَ وَإِنْ كَانَ نَسِيئَةً فَلاَ يَصْلُحُ " .
sunnah.com