I am an author, and I have books stored with me. Is it permissible to pay my zakat in the form of books containing beneficial knowledge for poor students, such as chemistry and mathematics, or religious books that spread Islamic sciences?
Zakat on wealth must be paid in cash from the wealth itself. Therefore, you should pay your zakat in monetary form so that the poor can purchase what they need. And Allah Knows Best.
What should a worshiper who has forgotten a pillar of prayer do?
If he/she remembered the forgotten pillar before offering it in the following Rakah (unit of prayer), then he/she should offer it, and continue the prayer, then offer Sujood As-Sahw (Prostration of forgetfulness) at the end of it. But, if he/she remembered that forgotten pillar after having offered it in the following Rakah, then he/she should offer a new Rakah in its (the one in which he forgot a pillar) place, and offer Sujood As-Sahw.
I suffer from excessive gas, especially when I pray, and I redo my ablution more than seven times. I have obsessive thoughts about this matter, even though I went to a doctor and was given medication that did not help. What should I do?
If the release of gas stops at certain times between prayers, you should wait for that time, perform ablution, and pray. However, if it is continuous, you should perform ablution after the prayer time begins and pray, and the release of gas during the prayer is excused. And Allah The Almighty Knows Best.
What is the ruling on staring at the Holy Ka'abah?
All perfecy praise be to Allah, The Lord of The Worlds and may His Peace and Blessings be upon our Prophet Muhammad and upon all of his family and companions.
Staring/looking at the Holy Ka'abah is an act of worship even if this took place while performing a prayer, since Al-Baihaqee stated that the Prophet (PBUH) said: " Staring at the Holy Ka'abah is an act of devotion." [Sho'aab Al-Imaan]. And Allah Knows Best.