“Apponting a way in the verse (iv.15) means prescribed punishment. Sufiyan said: “Punish them “refers to unmarried, and “confine them to houses” refers to the women who are married.
سُفْيَانُ { فَآذُوهُمَا } الْبِكْرَانِ { فَأَمْسِكُوهُنَّ فِي الْبُيُوتِ } الثَّيِّبَاتِ