Bulugh al-Maram
Book 5, Hadith 26
Arabic hadith text
وَأَصْلُهُ فِي " اَلْمُتَّفَقِِ " مِنْ حَدِيثِ عَائِشَةَ; { أَنَّ حَمْزَةَ بْنَ عَمْرٍو سَأَلَ } 11 - صحيح. رواه البخاري ( 4 / 179 / فتح )، ومسلم ( 2 / 789 ) وتمامه: رسول الله صلى الله عليه وسلم عن الصيام في السفر، فقال: " إن شئت فصم، وإن شئت فافطر ".
Translation
Its basis is in the hadith agreed upon by al-Bukhari and Muslim, from Aisha, that Hamzah ibn Amr asked the Messenger of Allah about fasting while traveling. He replied: “If you wish, fast; and if you wish, break the fast.”
The editor grades it authentic and cites al-Bukhari (Fath al-Bari 4:179) and Muslim 2:789.