Sunan an-Nasa'i, Book 22, Hadith 199 (In-Book) ⓘ
It was narrated that Ibn 'Abbas said: "The Messenger of Allah fasted from Al-Madinah until he came to Qudaid, then he broke his fast until he reached Makkah."
أَخْبَرَنَا الْقَاسِمُ بْنُ زَكَرِيَّا، قَالَ حَدَّثَنَا سَعِيدُ بْنُ عَمْرٍو، قَالَ حَدَّثَنَا عَبْثَرٌ، عَنِ الْعَلاَءِ بْنِ الْمُسَيَّبِ، عَنِ الْحَكَمِ بْنِ عُتَيْبَةَ، عَنْ مُجَاهِدٍ، عَنِ ابْنِ عَبَّاسٍ، قَالَ صَامَ رَسُولُ اللَّهِ صلى الله عليه وسلم مِنَ الْمَدِينَةِ حَتَّى أَتَى قُدَيْدًا ثُمَّ أَفْطَرَ حَتَّى أَتَى مَكَّةَ .
also referenced under: Hadith 2288 (Reference) & Volume 3, Book 22, Hadith 2290 (DarusSalam)