Anas bin Malik reported,

The Prophet ﷺ prayed four rakahs in Medina and two rakahs at Dhul Hulayfah, then spent the night there until morning at Dhul Hulayfah. When he mounted his riding camel and it stood up straight with him, he entered the state of ihram.

Bukhari 1546

Sahih

حدثني عبد الله بن محمد حدثنا هشام بن يوسف أخبرنا ابن جريج حدثنا محمد بن المنكدر

عن أنس بن مالك رضي الله عنه قال

صلى النبي ﷺ بالمدينة أربعا وبذي الحليفة ركعتين ثم بات حتى أصبح بذي الحليفة فلما ركب راحلته واستوت به أهل

البخاري 1546صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Hajj
Chapter
Whoever spent the night at Dhul-Hulayfa until morning
Numbering
Darussalam 1546
Bukhari 1546