Rulings of Prayer
Dress code: Part Three
A person who is about to stand before Allah in prayer should first purify their clothes of any kind of Najāsa or else their prayer will be void.
However, if someone's body or clothes become Najis during prayer, their prayer is not necessarily invalidated rather they should act as follows:
1. If the time for prayer is so short that if they change or clean their clothes, the time for prayer will expire, they should perform their prayer as is and the prayer will be valid.
2. If there is time and they have immediate access to pure water or clothes and also changing the clothes or purifying them will not make the person exit from the state of prayer, they are expected to clean or change their clothes while praying and then continue with the prayer.
3. If there is time and pure water or clothes are available, however, changing clothes or cleansing them will bring the person out of the state of prayer, or if water or clean clothes are not accessible, the individual should stop the prayer, change their clothes or make them pure and then reperform their prayer.