Yahya related to me from Malik that he had asked Ibn Shihab whether someone doing itikaf could go into a house to relieve himself, and he said, "Yes, there is no harm in that." Malik said, "The situation that we are all agreed upon here is that there is no disapproval of anyone doing itikaf in a mosque where jumua is held. The only reason I see for disapproving of doing itikaf in a mosque where jumua is not held is that the man doing itikaf would have to leave the mosque where he was doing itikaf in order to go to jumua, or else not go there at all. If, however, he is doing itikaf in a mosque where jumua is not held, and he does not have to go to jumua in any other mosque, then I see no harm in him doing itikaf there, because Allah, the Blessed and Exalted, says, 'While you are doing itikaf in mosques,' and refers to all mosques in general, without specifying any particular kind." Malik continued, "Accordingly, it is permissiblefor a man to do itikaf in a mosque where jumua is not held if he does not have to leave it to go to a mosque where jumua is held." Malik said, "A person doing itikaf should spend the night only in the mosque where he is doing itikaf, except if his tent is in one of the courtyards of the mosque. I have never heard that someone doing itikaf can put up a shelter anywhere except in the mosque itself or in one of the courtyards of the mosque. Part of what shows that he must spend the night in the mosque is the saying of A'isha, 'When the Messenger of Allah, may Allah bless him and grant him peace, was doing itikaf, he would only go into the house to...