Bulugh al-Maram 806
وَعَنْهُ قَالَ: قُلْتُ: يَا رَسُولَ اللَّهِ! إِنِّي أَبِيعُ بِالْبَقِيعِ, فَأَبِيعُ بِالدَّنَانِيرِ وَآخُذُ الدَّرَاهِمَ, وَأَبِيعُ بِالدَّرَاهِمِ وَآخُذُ الدَّنَانِيرَ, آخُذُ هَذَا مِنْ هَذِهِ وَأُعْطِي هَذَهِ مِنْ هَذِا? فَقَالَ رَسُولُ اللَّهِ - صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «لَا بَأْسَ أَنْ تَأْخُذَهَا بِسِعْرِ يَوْمِهَا مَا لَمْ تَتَفَرَّقَا وَبَيْنَكُمَا شَيْءٌ». رَوَاهُ الْخَمْسَةُ, وَصَحَّحَهُ الْحَاكِمُ.
From him, who said: I said: "O Messenger of Allah, I sell at al-Baqiʿ. I sell for dinars and take dirhams, and I sell for dirhams and take dinars; I take this for that and give that for this." The Messenger of Allah ﷺ said: "There is no harm in taking it at the rate of its day, as long as you do not separate while there is something [outstanding] between you." Reported by the five; al-Hakim graded it sahih.