Sahih Bukhari Volume 3, Book 34, Hadith Number 388.
Narated 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.”