Hadith 8:2713
Abu Bakr narrated to us, he said: Jarir narrated to us, from Mughira, from Ibrahim, who said: If the obligatory prayer arrives while you are circumambulating the House (the Kaaba), then interrupt your circumambulation, then pray, then complete what remains of your circumambulation.
حدثنا أبو بكر قال نا جرير عن مغيرة عن إبراهيم قال إذا حضرت صلاة مكتوبة وأنت تطوف بالبيت فاقطع طوافك ثم صل ثم اقض ما بقي من طوافك