It is narrated from Jubair bin Mut'im (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "O Banu Abd Manaf! Whoever among you becomes a ruler over the people, he should not prevent anyone from performing Tawaf of this House or praying in it at any time, day or night, whenever he wishes."
Hadith Referenceمسند الإمام الشافعي / كتاب الصلاة / 162
Hadith Takhrijأخرجه أبو داود، المناسك، باب الطواف بعد العصر: 1894 - والترمذي، الحج، باب ما جاء في الصلاة بعد العصر وبعد الصبح لمن يطوف: 868 - وقال ”حسن صحيح“ - والنسائي، مناسك الحج، باب اباحة الطواف في كل الأوقات: 2927 - وابن ماجة، الصلوة، باب ما جاء في الرخصہ في الصلاة بمكة في كل وقت: 1254 - وصححه ابن خزيمة: 2747 - وصححه الحاکم علی شرط الشیخین: 1/ 448.
Ata (may Allah have mercy on him) narrated from another chain from the Prophet ﷺ a hadith similar to the previous one, except that in the chain of Ata (may Allah have mercy on him) there is this addition: "O Banu Abd al-Muttalib, or O Banu Hashim, or O Banu Abd Manaf."
Hadith Referenceمسند الإمام الشافعي / كتاب الصلاة / 163
Hadith Takhrijاسنادہ ضعیف لارسالہ: الا ان المتن صحیح کما تقدم اخرجہ البیہقی فی المعرفۃ السنن والآثار: 1315
It is narrated from Amr bin Dinar, he says: "I saw Aban and Ata bin Abi Rabah, indeed Abdullah bin Umar (may Allah be pleased with them) performed Tawaf of the House of Allah after the (Fajr) prayer and prayed before the sun had risen."
Hadith Referenceمسند الإمام الشافعي / كتاب الصلاة / 164