(6) The Book of the Times (of Prayer)
كتاب المواقيت
(41) Chapter: Permission To Pray At All Times In Makkah
(41) باب إِبَاحَةِ الصَّلاَةِ فِي السَّاعَاتِ كُلِّهَا بِمَكَّةَ
Sunan an-Nasa'i 585 
It was narrated from Jubair bin Mut'im that the Prophet (ﷺ) said:
"O Banu 'Abd Manaf, do not prevent anyone from circumambulating this House and praying at any time he wants of night or day."
أَخْبَرَنَا مُحَمَّدُ بْنُ مَنْصُورٍ، قَالَ حَدَّثَنَا سُفْيَانُ، قَالَ سَمِعْتُ مِنْ أَبِي الزُّبَيْرِ، قَالَ سَمِعْتُ عَبْدَ اللَّهِ بْنَ بَابَاهْ، يُحَدِّثُ عَنْ جُبَيْرِ بْنِ مُطْعِمٍ، أَنَّ النَّبِيَّ صلى الله عليه وسلم قَالَ ‏ "‏ يَا بَنِي عَبْدِ مَنَافٍ لاَ تَمْنَعُوا أَحَدًا طَافَ بِهَذَا الْبَيْتِ وَصَلَّى أَيَّةَ سَاعَةٍ شَاءَ مِنْ لَيْلٍ أَوْ نَهَارٍ ‏"‏ ‏.‏
Reference : Sunan an-Nasa'i 585
In-book reference : Book 6, Hadith 92
English translation : Vol. 1, Book 6, Hadith 586