Language:
كتاب الأدب
78  
Good Manners and Form (Al-Adab)
(118)
Chapter: To raise the sight towards the sky
(118)
باب رَفْعِ الْبَصَرِ إِلَى السَّمَاءِ
Sahih al-Bukhari 6215

Narrated Ibn `Abbas:

Once I stayed overnight at the house of Maimuna and the Prophet (ﷺ) was there with her. When it was the last third of the night, or some part of the night, the Prophet (ﷺ) got up looking towards the sky and recited: 'Verily! In the creation of the heavens and the earth, and in the alternation of Night and Day, there are indeed signs for men of u understanding.' (3.190)

حَدَّثَنَا ابْنُ أَبِي مَرْيَمَ، حَدَّثَنَا مُحَمَّدُ بْنُ جَعْفَرٍ، قَالَ أَخْبَرَنِي شَرِيكٌ، عَنْ كُرَيْبٍ، عَنِ ابْنِ عَبَّاسٍ ـ رضى الله عنهما ـ قَالَ بِتُّ فِي بَيْتِ مَيْمُونَةَ وَالنَّبِيُّ صلى الله عليه وسلم عِنْدَهَا، فَلَمَّا كَانَ ثُلُثُ اللَّيْلِ الآخِرُ أَوْ بَعْضُهُ قَعَدَ فَنَظَرَ إِلَى السَّمَاءِ فَقَرَأَ ‏{‏إِنَّ فِي خَلْقِ السَّمَوَاتِ وَالأَرْضِ وَاخْتِلاَفِ اللَّيْلِ وَالنَّهَارِ لآيَاتٍ لأُولِي الأَلْبَابِ‏}‏‏.‏
Reference : Sahih al-Bukhari 6215
In-book reference : Book 78, Hadith 239
USC-MSA web (English) reference : Vol. 8, Book 73, Hadith 234
  (deprecated numbering scheme)