It is narrated from Abu Sa'id Al-Khudri (may Allah be pleased with him) that the Messenger of Allah (ﷺ) said: "Do not sell gold for gold except in equal measure, and do not sell what is absent for what is present."
Hadith Referenceمسند الإمام الشافعي / كتاب البيوع / 1385