Language:
كتاب الحج
25  
Hajj (Pilgrimage)
(55)
Chapter: How (the legality of) the Ramal started
(55)
باب كَيْفَ كَانَ بَدْءُ الرَّمَلِ
Sahih al-Bukhari 1602

Narrated Ibn `Abbas:

When Allah's Messenger (ﷺ) and his companions came to Mecca, the pagans circulated the news that a group of people were coming to them and they had been weakened by the Fever of Yathrib (Medina). So the Prophet ordered his companions to do Ramal in the first three rounds of Tawaf of the Ka`ba and to walk between the two corners (The Black Stone and Yemenite corner). The Prophet (ﷺ) did not order them to do Ramal in all the rounds of Tawaf out of pity for them.

حَدَّثَنَا سُلَيْمَانُ بْنُ حَرْبٍ، حَدَّثَنَا حَمَّادٌ ـ هُوَ ابْنُ زَيْدٍ ـ عَنْ أَيُّوبَ، عَنْ سَعِيدِ بْنِ جُبَيْرٍ، عَنِ ابْنِ عَبَّاسٍ ـ رضى الله عنهما ـ قَالَ قَدِمَ رَسُولُ اللَّهِ صلى الله عليه وسلم وَأَصْحَابُهُ فَقَالَ الْمُشْرِكُونَ إِنَّهُ يَقْدَمُ عَلَيْكُمْ، وَقَدْ وَهَنَهُمْ حُمَّى يَثْرِبَ‏.‏ فَأَمَرَهُمُ النَّبِيُّ صلى الله عليه وسلم أَنْ يَرْمُلُوا الأَشْوَاطَ الثَّلاَثَةَ، وَأَنْ يَمْشُوا مَا بَيْنَ الرُّكْنَيْنِ، وَلَمْ يَمْنَعْهُ أَنْ يَأْمُرَهُمْ أَنْ يَرْمُلُوا الأَشْوَاطَ كُلَّهَا إِلاَّ الإِبْقَاءُ عَلَيْهِمْ‏.‏
Reference : Sahih al-Bukhari 1602
In-book reference : Book 25, Hadith 88
USC-MSA web (English) reference : Vol. 2, Book 26, Hadith 672
  (deprecated numbering scheme)