Reference: Fataawa al-Hajj wal-‘Umrah waz-Ziyaarah – Page 81
Question: Is it compulsory to pray the two rak’ahs for the tawaaf behind the maqaam Ibraaheem, and what is the ruling regarding one who forgets this?
Response: It is not compulsory to pray two rak’ahs behind the maqaam Ibraaheem, rather it is acceptable in any place in the Haram (al-Masjid al-Haraam). Whoever forgets to pray them, then there is no harm because they are recommended and not obligatory.
And with Allaah lies all success and may Allaah send prayers and salutations upon our Prophet ﷺ and his family and his companions.