I asked the Messenger of Allah ﷺ, "May I buy gold with silver, or silver with gold?"He replied, "When you buy one of them with the other, do not part from your companion while there is still any ambiguity between you and him."
حدثنا يحيى بن آدم حدثنا إسرائيل عن سماك عن سعيد بن جبير
سألت رسول الله ﷺ أشتري الذهب بالفضة أو الفضة بالذهب قال إذا اشتريت واحدا منهما بالآخر فلا يفارقك صاحبك وبينك وبينه لبس