Sahih Bukhari | Volume 3 | Hadith Number 388

Narrated by Abdur-Rahman bin Abu Bakra
That his father said, "The Prophet forbade the selling of gold for gold and silver for silver except if they are equivalent in weight, and allowed us to sell gold for silver and vice versa as we wished."