Shu’bah said: Ayub narrated to me from ‘Amr bin Dinar, from Sayyiduna Ibn ‘Umar (may Allah be pleased with them both) that this is the Sunnah, that is, to perform two rak‘ahs of prayer behind Maqam Ibrahim after Tawaf is Sunnah.
Brief Explanation
(Commentary on Hadiths 1967 to 1970)
If space is not available there, then these two rak‘ahs can be performed at any place before the sa‘i.
This has already been mentioned in the explanation of Hadith number (1887).