Does passing wind, from the anus without a smell, invalidate prayer?
If a person is certain of having passed wind even if it was with no smell, then both his/her ablution and prayer are invalidated, thus he/she should remake ablution and re-perform prayer.
What is the ruling on fasting the six days of Shawwal?
Fasting the six days of Shawwal is Sunnah. The Prophet ﷺ said: "Whoever fasts Ramadan and then follows it with six days of Shawwal, it is as if they have fasted for a lifetime." [Narrated by Muslim]
This is because fasting one month of Ramadan is rewarded as fasting for ten months, and the six days are equivalent to sixty days, completing a full year of fasting.
Does passing wind from the anus affect ritual purity?
Ablution is nullified by the passing of wind from the anus, but washing the anus is not required as wind leaves no impurity.
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."