What is the ruling of Islamic Law on performing the Witr prayer after the Adhan for Fajr prayer?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah ﷺ.
The time for Witr prayer begins after the ‘Ishā' prayer and ends with the rising of true dawn (al-fajr aṣ-ṣādiq). If a Muslim performs it at any point within this window, it counts as performed on time.
It is also recommended to make up a missed Witr prayer at any time — whether before or after performing the Fajr prayer, or at any other time of day. On the authority of Abū Sa‘īd al-Khudrī (raḍiyallāhu ‘anh), the Messenger of Allah ﷺ said: "Whoever falls asleep and misses the Witr prayer, or forgets it, let him pray it when he remembers, or when he wakes up." (Related by at-Tirmidhī)
Shaykh al-Islām, Imam Ibn Ḥajar al-Haytamī (raḥimahullāh), says: "The time for Witr prayer is between the ‘Ishā' prayer and the rising of dawn, based on the authentic ḥadīth to this effect. If this time has passed, it is permissible for him to make it up (qaḍā') afterward." [Tuḥfat al-Muḥtāj]. And Allah, the Exalted, knows best.
Someone wiped over his shoes after wearing them in a state of purity, then took them off and prayed without them?
Ablution is not invalidated by taking off leather socks or shoes after wiping over them. However, whoever takes them off after wiping must wash his feet only. If he prayed without washing his feet, he must wash his feet and repeat the prayer. And Allah the Almighty knows best.
What is the ruling if someone wipes his head then shaves it - must he repeat it?
If a person performing ablution shaves his head after wiping it during ablution, he is not required to re-wipe his head or repeat the ablution. And Allah the Almighty knows best.
What is the ruling on bypassing a nearby mosque for a distant one?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
If a distant mosque has a larger congregation (Jama‘ah) while the congregation in the nearby mosque is smaller, and the congregation in the nearby mosque is not adversely affected by the worshiper's absence, then it is better for him to pray in the distant mosque with the larger congregation. However, if the congregation in the nearby mosque would be affected by his absence—such as if he is its Imam, or if his presence encourages others to attend—then praying in the nearby mosque is better. This ensures that the congregation is established in two different locations within the community. This is based on the saying of the Prophet ﷺ: 'A man's prayer offered with another man is purer than his prayer which he offers alone, and his prayer with two men is purer than his prayer with one and if they are more (in number), it is more beloved to Allah, the Mighty the Majestic' (Narrated by Ahmad, Abu Dawood, and An-Nasa'i). And Allah the Exalted knows best.