What is the ruling on speaking while relieving oneself?
It is disliked for one relieving himself to speak while doing so, except out of necessity. And Allah the Almighty knows best.
What is the ruling on performing Tahajjud after the Witr?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
It is permissible for one who has prayed the Witr to perform voluntary (Nafl) prayers after it. However, it is preferable for the Witr to be the final prayer of the night. Therefore, if a person is confident that they will wake up during the night for Tahajjud, it is recommended for them to delay the Witr until after the Tahajjud. Conversely, if one fears they may not wake up, they should perform the Witr before sleeping.
Al-Khatib al-Shirbini (may Allah have mercy on him) stated: 'It is not disliked (Makruh) to perform Tahajjud after the Witr, but it is not recommended to do so intentionally.' [Mughni al-Muhtaj, Vol. 1/P.454]. 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.
How is the Night Prayer (Qiyam al-Layl) performed?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
Night Prayer (Qiyam al-Layl) refers to the voluntary (Nafl) prayers performed by a person after the Sunset prayer (Maghrib) and before the Dawn prayer (Fajr). As for Tahajjud, it is the voluntary prayer performed during the night specifically after waking up from sleep, as an act of devotion to Allah. Allah the Exalted says {what means}: "And from [part of] the night, pray with it [i.e., recitation] as additional worship for you." (Al-Isra/79). Thus, in terms of reward,Tahajjud is superior to voluntary prayers performed before sleeping. And Allah the Exalted knows best.