It is narrated from Sayyiduna Fadalah bin Ubayd (may Allah be pleased with him) that they were with the Prophet (peace and blessings be upon him) on a military campaign when they obtained a necklace containing gold and gems, and they sold it for dinars. The Prophet (peace and blessings be upon him) said: "Do not sell like this," and he forbade them from it, and said: "The gems separately and the gold separately."
Hadith Referenceالمعجم الكبير للطبراني / باب الفاء / 15905