Hadith 8:935
Abu Bakr narrated to us, he said: Ibn Idris narrated to us, from Ibn ‘Ulayyah, from Hammad (Hajjaj), from Ibrahim, who said: "Like it: Whenever you enter the Sacred Mosque, whether you circumambulate the House or do not circumambulate, touch the Stone when you want to leave the mosque, or face it, then say 'Allahu Akbar' and supplicate to Allah."
حدثنا أبو بكر قال حدثنا بن إدريس عن بن علية عن حماد ( ( ( حجاج ) ) ) عن إبراهيم قال ( ( ( مثله ) ) ) كلما دخلت المسجد الحرام طفت بالبيت أو لم تطف استلم الحجر حين تريد أن تخرج من المسجد أو استقبله فكبر وادع الله