Ghusl for Janabat
363. Ghusl for Janabat is obligatory for offering the daily prayers and other similar acts of worship. However, it is not obligatory for Namaz-e-Mayyit or for sajdatus sahv (prostrating on account of oversight) or sajdatush shukr' (prostration for thanksgiving) or for the obligatory Sajdah upon reciting the four particular verses of the holy Qur'an. (Rule no. 361)
364. At the time of doing ghusl, it is not necessary to have in mind that one is performing an obligatory Ghusl. It is sufficient if one performs the Ghusl with the intention of Qurbat, i.e. complying with Allah's orders.
365. If a person who performs Ghusl with the niyyat of Wajib after having ascertained that the time of Namaz had set in, comes to know after performing the bath that it was performed before the&127; time for prayers had set in, the bath would be correct and valid.
366. There are two methods of performing Ghusls, both Wajib and Mustahab.
Irtimasi (By submerging the whole body).