If somebody sells a thing for a weak-minded person and pays him the price, and advised him to utilize it in a proper way and not to spoil it, and he spoils it, he can stop him from doing so, for the Prophet had forbidden the wasting of the property. The Prophet ordered the person who said that he had always been cheated in buying, to say, at the time of the deal, "No cheating!" The Prophet did not take his money (of the person who sold his slave, because he had not proved foolish). Sahih al-Bukhari 2415

Arabic hadith text
حَدَّثَنَا عَاصِمُ بْنُ عَلِيٍّ، حَدَّثَنَا ابْنُ أَبِي ذِئْبٍ، عَنْ مُحَمَّدِ بْنِ الْمُنْكَدِرِ، عَنْ جَابِرٍ ـ رضى الله عنه ـأَنَّ رَجُلاً، أَعْتَقَ عَبْدًا لَهُ، لَيْسَ لَهُ مَالٌ غَيْرُهُ، فَرَدَّهُ النَّبِيُّ صلى الله عليه وسلم، فَابْتَاعَهُ مِنْهُ نُعَيْمُ بْنُ النَّحَّامِ‏.‏
Translation
Narrated Jabir

A man manumitted a slave and he had no other property than that, so the Prophet (ﷺ) canceled the manumission (and sold the slave for him). Nu'aim bin Al-Nahham bought the slave from him.