Is it a condition for I‘tikaf to be performed in the mosque?
Yes, for I‘tikaf to be valid, it must be performed in a mosque. I‘tikaf is not valid if performed at home or elsewhere.
What is the ruling on forgetting an integral of the prayer?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
Whoever forgets an integral (Rukn) of the prayer and remembers it before reaching the equivalent point in the subsequent unit (Rak'ah), must return to it (i.e., perform it) and complete his prayer, then perform the prostration of forgetfulness (Sujud al-Sahw) at the end of his prayer. However, if he remembers it after reaching the equivalent point in the subsequent unit, the Rak'ah in which the integral was forgotten is invalidated, and the current unit takes its place; he then completes a full Rak'ah to compensate and performs the prostration of forgetfulness.
It is stated in Nihayat al-Muhtaj ila Sharh al-Minhaj (Vol.1/P.543): 'If he becomes certain at the end of his prayer, or after the Salam—provided the interval is not long according to custom and he has not stepped on an impurity—that he omitted a prostration from the final Rak'ah, he must perform it and repeat the Tashahhud, as his previous Tashahhud occurred before its proper place. If the omission was from a Rak'ah other than the final one, he must perform a full Rak'ah, because the deficient unit was completed by a prostration from the subsequent one, rendering the rest of that subsequent unit void.' And Allah the Exalted knows best.
What should a person who doubted having missed a pillar of prayer do?
All praise be to Allah, The Lord of The Worlds. The prayer of one who doubts having missed one of its pillars is valid, and nothing is due on him/her since having a doubt after offering the act of worship doesn`t undermine its validity. And Allah Knows Best.
"I told my family at night: 'I will fast tomorrow as qaḍā' (a make-up fast),' but I forgot to make the intention before sleeping. Is my fast valid?"
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah ﷺ.
The intention is obligatory in acts of worship. For obligatory fasting, the required intention is to resolve to fast during the night [before dawn]. Its proper locus is the heart, while verbalizing the intention out loud in acts of worship is a sunnah — so that the tongue may align with the heart. If the intent behind the statement in question was the intention to fast, then it is valid; but if the intent was merely to inform someone, or reflected hesitation or doubt, then it is not valid.
It is stated in *Bushrā al-Karīm* (Vol.1/P.216): "It is a sunnah to verbalize the intention — that is, whatever has already been intended in the heart, whether an obligatory or a voluntary act — such as specifying the number of rak‘ahs, just before the opening takbīr — so that the tongue may assist the heart, and because this is further removed from whispered doubts (waswasah), and in order to accommodate the view of those who held it obligatory in every act of worship that requires an intention (even though this is a minority position), by analogy with Ḥajj."
Accordingly: if the intention to fast arose in your heart before the second adhān [i.e., before Fajr], then your fast is valid.
And Allah, the Exalted, knows best.