Is the prayer of someone who didn`t face Quibla (Ka`ba direction) valid?
All perfect praise be to Allah,The Lord of The Worlds. Facing the Quibla is a condition for the validity of prayer, and the prayer of the person who hadn`t faced the direction of the Quibla is invalid, and he is obliged to repeat it. And Allah Knows Best.
Is it a condition that a woman should untie her locks while making Ghusl (ritual bath)?
Ghusl from Janabah (ritual impurity), or menstruation obligates that water reaches the roots of the hair in order for the Ghusl to be valid, but if it doesn`t, then hair locks must be untied for water to reach them, and for Ghusl to become valid.
What is the meaning of the Prophetic statement that a boy is held in pledge (murtahan) for his 'aqīqah?
All praise is due to Allah, and may peace and blessings be upon our Master, the Messenger of Allah.
The first interpretation: That if the boy dies in infancy without an 'aqīqah having been performed on his behalf, he will not intercede for his parents on the Day of Resurrection. This is the position of Imam Aḥmad ibn Ḥanbal, and Imam al-Khaṭṭābī concurred with him, stating: "The finest of what has been said regarding this matter is the position adopted by Aḥmad ibn Ḥanbal." — [Fatḥ al-Bārī by Ibn Ḥajar,{Vol.9/P.594]
The second interpretation: That the child is likened to a pledged object (marhūn) — one from which full benefit and enjoyment cannot be derived until it is redeemed. A blessing is only made complete upon the one blessed when they fulfil the obligation of gratitude (shukr), and the prescribed expression of gratitude for this particular blessing is what the Prophet ﷺ established as Sunnah — namely, the slaughtering of the 'aqīqah on behalf of the newborn as an act of thankfulness to Allah the Almighty and as a supplication for the wellbeing and safety of the child. This is the position of Mullā 'Alī al-Qārī. See: [Mirqāt al-Mafātīḥ Sharḥ Mishkāt al-Maṣābīḥ, Vol.7/P.2688]
And Allah Almighty knows best.
What is the wisdom behind the legislation of fasting?
Fasting is a divine school from which the believer learns much and trains in virtues that may be needed in life. Among these virtues is patience, as it is the month of patience. Fasting also teaches honesty and consciousness of Allah in both private and public, for there is no observer over the fasting person in abstaining from lawful pleasures except Allah alone.
Fasting strengthens willpower, sharpens determination, and nurtures mercy and compassion among the servants of Allah. It is a struggle against the self, a restraint of desires, a purification of the soul, and a cultivation of goodness.
The Prophetﷺ said: "Allah, the Almighty, said: ‘Every deed of the son of Adam is for him, except for fasting; it is for Me, and I shall reward for it. Fasting is a shield. So when one of you is fasting on a day, let him not engage in obscene speech or raise his voice in anger. If someone insults him or fights him, let him say: I am a fasting person. By Him in whose hand is the soul of Muhammad, the breath of the fasting person is more pleasant to Allah than the fragrance of musk.’" [Bukhari and Muslim]