And We inspired to Moses and his brother, "Settle your people in Egypt in houses and make your houses [facing the] qiblah1 and establish prayer and give good tidings to the believers."
Translation: Saheeh International (English)
1 In order that they might pray therein unseen by their enemy.
I revealed to Moses and his brother, Aaron (peace be upon them), that they should select and make homes for their people to worship Me alone; that they should make their homes face the direction of the qiblah (which was then Jerusalem); and that they should perform the ritual prayer with perfection. I also told Moses to inform the believers of news that will please them: the news of My assistance and support for them; My destruction of their enemy; and My making them successors on earth.