She said that the sunna for one who is observing a period of private devotion in a mosque is not to visit an invalid, or attend a funeral, or touch or embrace one’s wife, or go out for anything but necessary purposes. There is no period of private devotion in a mosque without fasting, and it must be carried out in a congregational mosque.
Abu Dawud transmitted it.