I obtained a necklace at the battle of Khaybar containing gold and beads, and I wanted to sell it. This was mentioned to the Prophet ﷺ, and he said, "Separate the gold from the beads, then sell it."
أخبرنا عمرو بن منصور قال حدثنا محمد بن محبوب قال حدثنا هشيم قال أنبأنا الليث بن سعد عن خالد بن أبي عمران عن حنش الصنعاني
أصبت يوم خيبر قلادة فيها ذهب وخرز فأردت أن أبيعها فذكر ذلك للنبي ﷺ فقال افصل بعضها من بعض ثم بعها
Reference. [sahih] See the previous hadith. It is also found in Sunan al-Kubra, hadith no. 6166.