Is prayer nullified by having thoughts while performing it?
Prayer isn`t nullified by having thoughts while performing it, provided that the praying person offers all of its pillars and meets all of its conditions. However, the reward decreases significantly in the absence of reverence since a praying person is rewarded according to the attentiveness of his/her heart during prayer.
What is the ruling on the cessation of blood after (40) days from delivery, but later continued sporadically during two days of Ramadan?
Once postpartum bleeding (Nifas) ceases, and the woman is certain that it won`t reoccur, then she becomes ritually pure and so she is free to make Ghusl (purificatory bath), pray, and fast. If the bleeding reoccurs before fifteen days from its cessation, and before the end of (60) days after delivery, then the ruling on postpartum bleeding is effective, and her fasting and prayer are null and void, thus she must make up the fasting that she missed and not the prayer during those particular days.
Is there a solution to put an end to thinking of worries during prayer?
Firstly, make ablution after the time for prayer begins and busy yourself with remembering Allah, The Exalted, before the iqaamah (start of prayer).In order to become humbly submissive during prayer, you must perform prayer in congregation. After the prayer ends, stay in your place and read the post-prayer remembrances (Adhkaar) and make supplication to Allah, The Exalted.
Is the son of the sister by breastfeeding considered a mahram in Islam, and is it permissible for a woman to go for Hajj with him?
Everything that is prohibited by lineage is also prohibited by breastfeeding. The son of the sister by breastfeeding is considered a mahram, just like the son of the sister by blood, and it is permissible for him to be her mahram for Hajj and Umrah. And Allah Knows Best.