Upon entering any mosque, we are recommended to offer two rak’ahs as a greeting to the mosque. However, some scholars suggest that one who arrives in the Grand Mosque in Makkah for Umrah should start with tawaf, which is also regarded as a greeting prayer. How far is this correct and when does it apply?
Offering two rak’ahs as a greeting to a mosque is not restricted to when you enter the Haram for prayers only. This applies anytime when you enter the Haram, whether you are performing the Umrah or the pilgrimage or just arriving for one regular prayer or sit in the mosque and read the Qur’an. Tawaf does not count as a greeting prayer, but it is the proper greeting of the Ka’abah.
You perhaps realize that tawaf is a form of prayer which means that everything that applies to prayer applies to tawaf with the exception that it is permissible to talk during tawaf. In other words, you have to have ablution for tawaf and you better occupy your time with glorification of Allah and praising Him as well as praying Him for anything you wish. When you finish tawaf you are recommended to offer two rak’ahs as Sunnah of tawaf, and it is preferable to offer them behind the place known as Maqam Ibrahim.