What is the ruling on someone who eats or drinks thinking that the sun has set, then realizes that it has not yet set?
Whoever eats or drinks believing that the sun has set, then later discovers that it has not yet set, their fast is invalid, and they must make up that day after Ramadan. It is not permissible to break the fast before confirming sunset—either by seeing it, through personal reasoning, or by relying on the statement of someone trustworthy in their religious commitment.
Does touching women temporarily forbidden in marriage nullify ablution?
It is prohibited to touch, or to shake hands with such women as they are considered strangers, and doing so nullifies ablution.
What is the ruling on using a miswak (tooth-stick) during the day in Ramadan?
It is permissible to use a miswak before noon while fasting. However, according to the Shafi'i school, it is disliked (makruh) after noon in order to preserve the natural effect of fasting in the mouth, as the Prophetﷺ said in authentic hadith:
"The breath of a fasting person is more pleasant to Allah than the fragrance of musk."
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.