The Messenger of Allah ﷺ said, "Gold for gold, silver for silver, and do not give one of them any advantage over the other."
حدثنا سعيد بن منصور مثله بإسناده
Its chain of transmission is sahih.