The author, may Allah shower blessings on him, mentioned these two chapters:
The first chapter is about Tahiyyatul-Masjid and that it is an emphatic Sunnah. If someone enters the mosque at any time it is disliked for him to sit before he prays two rak'ah. And there is no difference in it being two rak'ah of Tahiyyatul-Masjid, regular optional prayer, obligatory prayer, Salatul-Istikharah or others. The important point is that he should not sit without performing two rak'ah.
To begin with, we shall discuss the Sunnah of entering a mosque. It is very much emphasized so much so that some scholars say it is obligatory. The hadeeth of a man who entered the mosque on a Friday while the Prophet ﷺ was delivering the sermon and sat down lays credence to its emphatic nature. The man sat, so the Prophet ﷺ said to him, "Have you prayed? He replied in negative, so he ﷺ told him, "Stand and observe two rak'ah and make them brief"; that is, make them short in order to meet up with the khutbah. Thus, if the Messenger ﷺ would order him to observe the Prayer during khutbah, although listening to the khutbah is obligatory, it shows that Tahiyyatul-Masjid is obligatory. If not for the texts that show that it is not obligatory, we
would have said it is obligatory.
However, it is an emphatic Sunnah at all times. You should observe two rak'ah if you enter the mosque after the Fajr Prayer, after 'Asr prayer, or when the sun is setting or rising. Do not sit down without observing it. You should observe the two rak'ah even if you enter while the Imam is delivering the sermon or people are listening to a lesson. It is necessary for you to observe two rak'ah in every situation and at all times.
However, two issues are exempted from this:
Firstly, it is not recommended for the Imam to observe two rak'ah when he enters the mosque (on Friday). Rather, he should mount the minbar, greet the congregation and proceed to deliver his sermon.
Secondly, if one enters the Sacred Mosque to perform Tawaf; the two Tawaf will suffice him from the two-rak'ah prayer. But whoever enters the Masjid al-Haram to observe Salat should observe two rak'ah of Tahiyyatul-Masjid because it is like every other mosque in that regard. As for what is common among the masses that Tahiyyatul-Masjid of the Sacred Mosque is Tawaf, there is baseless. Rather, it should be stated the Tawaf would stand in stead of Tahiyyatul-Masjid for whoever enters the Masjid al-Haram to perform Tawaf.
But it is like every other mosque for whoever enters it in order to listen to a lesson, await the obligatory prayer or similar motives; he should not sit without observing the two rak'ah.
And it is good to observe two brief rak'ah if he enters the mosque on a Friday while the Imam is delivering his sermon. If he enters while the Mu'adhhdhin is making the call to prayer, if it is not a Friday prayer, he should wait standing in order to follow the Mu'adhhdhin and make supplication after the Adhan, then he should observe two rak'ah. But if it is a Friday prayer, and it is the second Adhan, he should observe Tahiyyatul-Masjid so as to devote himself to listening to the khutbah. This is how the people of knowledge explained it, may Allah have mercy on them.
As for the second chapter, it is about the voluntary prayer after
ablution. Whenever a person performs ablution, it is good for him to observe two rak'ah of prayer. This can be observed at any time, even if it is after 'Asr prayer or after Fajr prayer.
The Prophet ﷺ asked Bilal bin Rabah, may Allah be pleased with him, about his most auspicious deed in Islam, and he replied, "Whenever I perform ablution during the day or night, I would observe two rak'ah prayers." And the Prophet ﷺ approved of that.
In addition, it is better to avoid thinking of external matters during this Salat. This is because "Whoever perfects his ablution, then observes two rak'ah, without allowing his mind wander during the prayer, Allah will forgive him all of his sins." He should observe this two rak'ah prayer anywhere; whether it is in his house, if he performed the ablution at home, or in the mosque, if he performed the ablution in the mosque's ablution room.