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.
What is the wisdom behind legislating the Udhiyah?
The Muslim must know that through the Uḍḥiyah, he complies with the command of Allah, the Exalted, and performs a worship that brings him closer to Allah and distances him from the Fire.
The Uḍḥiyah holds profound wisdoms and noble meanings, including:
1-Reviving the Sunnah of Abraham, peace be upon him: He complied with Allah's command when He ordered him to slaughter his son Ishmael. Abraham, peace be upon him, succeeded in the test, and when he was about to slaughter his son, Allah sent down a ram to ransom Ishmael and commanded him to slaughter it instead. Allah, the Exalted, says {what means]: "And when he reached with him [the age of] exertion, he said, 'O my son, indeed I have seen in a dream that I [must] sacrifice you, so see what you think.' He said, 'O my father, do as you are commanded. You will find me, if Allah wills, of the steadfast.' And when they had both submitted and he put him down upon his forehead, We called to him, 'O Abraham, You have fulfilled the vision.' Indeed, We thus reward the doers of good. Indeed, this was the clear trial. And We ransomed him with a great sacrifice." [Al-Ṣāffāt/102-107]. Thus, the sacrificial offering became an enduring Sunnah until the Day of Judgment, and Muslims offer their wealth as sacrifices, drawing closer to Allah, the Exalted, reviving this great Sunnah.
2-Providing abundance for people on Eid day and the Days of Tashrīq: Among the wisdoms of the Uḍḥiyah is that the Muslim provides generously for his family, neighbors, relatives, and the poor during these days. The Muslim is encouraged to eat from his sacrifice, give charity from it to the poor, and gift from it to his wealthy neighbors. Thus, goodness spreads throughout the entire community. The Prophet, peace and blessings be upon him, said: "The Days of Tashrīq are days of eating and drinking." (Narrated by Muslim). Allah, the Exalted, says {what means}: "And the camels and cattle We have appointed for you as among the symbols of Allah; for you therein is good." [Al-Ḥajj/36]. This good includes the good of both this world and the Hereafter.
How to perform the witr prayer in terms of connection (wasl) and separation (fasl)?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
The Witr prayer has several forms that vary in terms of virtue:
The First Form: Separating every two units (rak‘ah) with a Tashahhud and a Taslim (salutation). This is superior to connecting the units, even if it is only a single rak‘ah. This is based on the Hadith of ‘Aishah (may Allah be pleased with her): 'The Messenger of Allah ﷺ used to pray eleven units between the end of the ‘Isha prayer and dawn, performing the Taslim after every two units and performing Witr with a single unit.' (Related by al-Bukhari & Muslim).
The Second Form: Connecting the units with only one final Tashahhud at the very end.
The Third Form: Connecting with two Tashahhuds—meaning reciting the Tashahhud before the final unit without performing the Taslim, then standing to complete the final unit. This form is considered the lowest in rank so that the Witr prayer remains distinct from the obligatory Maghrib prayer, as stated in the Hadith: 'Do not make the Witr resemble the Maghrib prayer.' (Narrated by Al-Daraqutni, who stated its narrators are trustworthy).
It is stated in Bushra al-Karim Sharh al-Muqaddimah al-Hadramiyyah: 'It is permissible to connect [the Witr] with one Tashahhud in the final unit—which is better—or with two Tashahhuds in the last two units, as both methods are established in Sahih Muslim from the actions of the Prophet ﷺ. In the connected method, more than two Tashahhuds are prohibited. Furthermore, separating (al-Fasl) is better than connecting (al-Wasl) if the number of units is the same, because the Hadiths supporting it are more numerous and it involves more devotional actions.' And Allah the Exalted knows best."
What is the ruling on doubting whether one or two prostrations were performed?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
If a worshiper is in doubt regarding the number of units (rak'ahs) or prostrations (sajdahs) performed, he must build upon the minimum (i.e., assume the lower number) and perform the prostration of forgetfulness (Sujud al-Sahw) before the Salam at the end of the prayer. This is based on the report from ‘Ata’ ibn Yasar that the Messenger of Allah ﷺ said: 'When anyone of you is in doubt about his Salat (prayer) and does not know how many he has prayed, three or four (Rak'at) he should cast aside his doubt and base his prayer on what he is sure of. Then, he should perform two prostrations before Taslim (salutation). If he has prayed five Rak'at, they will make his Salat (prayer) an even number for him and if he has prayed exactly four, they (i.e. two prostrations) will be humiliation for the devil..' (Narrated by Abu Dawud).
It is stated in Al-Muqaddimah al-Hadramiyyah: 'If one doubts [whether he performed] a bowing (ruku’), a prostration, or a rak'ah, he must perform it and prostrate [for forgetfulness], even if the doubt is removed before the Salam—unless the doubt is removed before he performs what would potentially be an addition. Thus, if he doubts whether he prayed three or four, he is obligated to build upon the minimum.' And Allah the Exalted knows best.