وَ لَا تَجُوزُ الصَّلَاةُ فِي بَيْتٍ فِيهِ خَمْرٌ مَحْصُورٌ فِي آنِيَةٍ وَ لَا بَأْسَ بِالصَّلَاةِ فِي ثَوْبٍ أَصَابَتْهُ خَمْرٌ لِأَنَّ اللَّهَ عَزَّ وَ جَلَّ حَرَّمَ شُرْبَهَا وَ لَمْ يُحَرِّمِ الصَّلَاةَ فِي ثَوْبٍ أَصَابَتْهُ.
It is not permissible to perform prayer in a house where wine is stored in containers. However, there is no harm in praying in a garment that has been touched by wine because Allah سبحانه وتعالى, the Mighty and Majestic, has forbidden its consumption but has not prohibited praying in a garment that has been affected by it.