Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ibnmajah:2283Muḥammad b. ʿAbdullāh b. Numayr > Shujāʿ b. al-Walīd > Ziyād b. Khaythamah > Saʿd > ʿAṭiyyah > Abū Saʿīd

"When you have paid in advance for something, do not exchange it for something else." (Da'if)Another chain with similar wording.  

ابن ماجة:٢٢٨٣حَدَّثَنَا مُحَمَّدُ بْنُ عَبْدِ اللَّهِ بْنِ نُمَيْرٍ حَدَّثَنَا شُجَاعُ بْنُ الْوَلِيدِ حَدَّثَنَا زِيَادُ بْنُ خَيْثَمَةَ عَنْ سَعْدٍ عَنْ عَطِيَّةَ عَنْ أَبِي سَعِيدٍ قَالَ

قَالَ رَسُولُ اللَّهِ ﷺ إِذَا أَسْلَفْتَ فِي شَىْءٍ فَلاَ تَصْرِفْهُ إِلَى غَيْرِهِ حَدَّثَنَا عَبْدُ اللَّهِ بْنُ سَعِيدٍ حَدَّثَنَا شُجَاعُ بْنُ الْوَلِيدِ عَنْ زِيَادِ بْنِ خَيْثَمَةَ عَنْ عَطِيَّةَ عَنْ أَبِي سَعِيدٍ قَالَ قَالَ رَسُولُ اللَّهِ ﷺ فَذَكَرَ مِثْلَهُ وَلَمْ يَذْكُرْ سَعْدًا