Sayyiduna Fadalah bin Ubayd (may Allah be pleased with him) narrates: On the day of Khaybar a necklace containing beads and gold was brought to the Messenger of Allah (peace and blessings be upon him); it was from the spoils of war and was being sold. The Messenger of Allah (peace and blessings be upon him) ordered that the gold in the necklace be separated, so it alone was removed. Then the Messenger of Allah (peace and blessings be upon him) said to them: "Gold for gold, weight for weight."
Hadith Referenceالمعجم الكبير للطبراني / باب الفاء / 15904