Sayyiduna Fadalah bin Ubayd (may Allah be pleased with him) narrates: A necklace from the spoils of war containing gold and beads was brought to the Prophet (peace and blessings be upon him) to be sold. The Prophet (peace and blessings be upon him) took out the gold that was in the necklace and sold it separately, then said: "Gold for gold, weight for weight."
Hadith Referenceالمعجم الكبير للطبراني / باب الفاء / 15898