Rav Yosef taught: "What is the meaning of the verse: 'None of you shall go outside the door of your house until morning' [Exodus 12:22]? Once permission has been given to the Destroyer, it does not differentiate between righteous and wicked. [Soncino translation]