סימן קפב סעיף יב
מִי שֶׁנִּתְחַלְפוּ לוֹ כֵּלָיו בְּבֵית הַמִּשְׁתֶּה וְכַדּוֹמֶה, הַרֵי זֶה לֹא יִשְׁתַּמֵּשׁ בְּכֵלִים אֵלוּ שֶׁבָּאוּ לְיָדוֹ וְאֵינָם שֶׁלּוֹ. וּכְשֶׁיָבוֹא בַּעַל הַחֵפֶץ, צָרִיךְ לְהַחֲזִירוֹ לוֹ, וְאַף עַל פִּי שֶׁהַחֵפֶץ שֶׁלּוֹ נֶאֱבָד. וְכֵן כּוֹבֶסֶת הַמְכַבֶּסֶת לְרַבִּים וְהֵבִיאָה לוֹ חָלוּק שֶׁאֵינוֹ שֶׁלּוֹ, אָסוּר לְלָבְשוֹ, אֶלָּא צָרִיךְ לְהַחֲזִירוֹ לִבְעָלָיו, וְאַף עַל פִּי שֶׁשֶּׁלּוֹ נֶאֱבָד. אַךְ אִם מֻנָּח אֶצְלוֹ יָמִים רַבִּים, עַד שֶׁאִי אֶפְשָׁר שֶׁלֹּא חָקְרוּ הַבְּעָלִים בֵּינְתַיִם אַחַר שֶׁלָּהֶם, אָז מֻתָּר לוֹ לְלָבְשוֹ, כִּי מִסְּתָמָא סִלְּקָה הַכּוֹבֶסֶת אֶת בְּעָלָיו וְשִׁלְּמָה בְּעַד הֶחָלוּק הַזֶה.
If you inadvertently exchanged coats at a wedding hall or another public place, you are not allowed to use these items that came into your possession, and are not yours. When the rightful owner appears you must return it to him, even if yours had been lost there. Also, in case a commercial launderer gave you someone else's garment, you are forbidden to wear it, but must return it to its rightful owner; even though yours was lost. However, if the article was with you so long that it is impossible the owner did not inquire after his things during this time, then you are permitted to wear it, for you may assume that the launderer satisfied the owner, and paid him for this garment.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)