Is it permissible for a woman who has become pure before the end of forty days of confinement to perform different acts of worship? and is it lawful for her husband to have sex with her?
Once postpartum bleeding ceases and she is certain that it won`t happen again, she becomes pure, and so she should perform Ghusl (ritual bath), pray, and fast. She can also have sex with her husband even before the end of (40) days because the minimum of postpartum bleeding is a moment, and the maximum is (60) days. However, the postpartum bleeding for the majority of women is (40) days, but this does not apply to rest of them.
What is required of one who doubts the number of rakʿāt during prayer?
All praise is due to Allah, and peace and blessings be upon our master the Messenger of Allah ﷺ.
If a person doubts the number of rakʿāt he has prayed, he should build upon the lesser number, as that is what he is certain of. He should then perform the prostration of forgetfulness (sujūd al-sahw) before the final salām at the end of the prayer. ʿAṭāʾ ibn Yasār narrated that the Messenger of Allah ﷺ said: "When any one of you is in doubt during his prayer and does not know whether he has prayed three rakʿāt or four, let him pray one more rakʿah and then perform two prostrations while seated before the salām. If the rakʿah he prayed was a fifth, these two prostrations will make it even; and if it was the fourth, then the two prostrations serve as a humiliation for the devil." (Reported by Abū Dāwūd.)
It is stated in al-Muqaddimah al-Ḥaḍramiyyah — one of the foundational texts of the Shāfiʿī school: "If one doubts whether he has prayed three rakʿāt or four, he is obliged to build upon the lesser number."
However, if such doubt recurs repeatedly and reaches the level of obsessive whispering (waswasah), he should not build upon the lesser number in that case — rather, he should build upon the greater number. And Allah the Almighty knows best.
What is the ruling of Islamic Law on applying perfume before entering the state of ihram
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah.
Applying some perfume (ṭīb) before entering the state of iḥrām does not affect the validity of the Ihram, even if its trace remains after the iḥrām has begun. Indeed, it is sunnah for the pilgrim performing Ḥajj or ʿUmrah to perfume himself before iḥrām.
The scholar Nawawī al-Jāwī (may Allah have mercy on him) said: “The third of them is applying perfume to the body shortly before it, that is, before iḥrām, whether the one entering iḥrām is male or otherwise, young or old, married or unmarried. The recommendation applies after performing the ritual bath (ghusl), and it is fulfilled with any perfume whatsoever, though the best is musk, mixed with rose water or the like. There is no objection to the perfume remaining on the body after iḥrām; however, if a woman becomes bound by the mourning observance (iḥdād) after entering iḥrām, she must remove it. As for perfuming the garment, it is merely permissible, not recommended, according to the reliable position (al-muʿtamad). But if one removes his perfumed garment while the scent is still present in it and then wears it again, he is liable for the fidyah (expiation).” [Nihāyat al-Zayn, Vol.1/212]. And Allah Almighty knows best.
Should nail polish be removed before making ablution?
Yes, it should be removed because it prevents water from reaching the nails.