Sunan Abi Dawud, Book 40, Hadith 64 (Abu Dawud 4416)

Mujahid said:

“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.