The Messenger of Allah ﷺ forbade the transaction known as mulamasah, which is when a man purchases a garment merely by touching it without examining it, and he also forbade munabadhah, which is when a man tosses his garment to another as a sale before the buyer has had a chance to turn it over or inspect it.
أخبرنا إبراهيم بن يعقوب بن إسحق قال حدثنا عبد الله بن يوسف قال حدثنا الليث عن عقيل عن ابن شهاب قال أخبرني عامر بن سعد بن أبي وقاص
أن رسول الله ﷺ نهى عن الملامسة لمس الثوب لا ينظر إليه وعن المنابذة وهي طرح الرجل ثوبه إلى الرجل بالبيع قبل أن يقلبه أو ينظر إليه
Bukhari transmitted it in the chapters on business transactions, chapter on the sale of mulamasah, hadith 2144, from the hadith of Layth bin Saad, and Muslim transmitted it in the chapters on business transactions, chapter on the invalidity of the sale of mulamasah and munabadhah, hadith 1512, from the hadith of Ibn Shihab Zuhri through the same chain, and it is in Al-Kubra, hadith 6101.