Sunan an Nasai 2307
The Book of Fasting
أَخْبَرَنِي عَمْرُو بْنُ هِشَامٍ، قَالَ حَدَّثَنَا مُحَمَّدُ بْنُ سَلَمَةَ، عَنِ ابْنِ عَجْلاَنَ، عَنْ هِشَامِ بْنِ عُرْوَةَ، عَنْ أَبِيهِ، عَنْ عَائِشَةَ، قَالَتْ إِنَّ حَمْزَةَ سَأَلَ رَسُولَ اللَّهِ صلى الله عليه وسلم فَقَالَ يَا رَسُولَ اللَّهِ أَصُومُ فِي السَّفَرِ فَقَالَ " إِنْ شِئْتَ فَصُمْ وَإِنْ شِئْتَ فَأَفْطِرْ " .
It was narrated that 'Aishah said:"Hamzah asked the Messenger of Allah: 'O Messenger of Allah, should I fast while then fast and if you wish then do not fast
Grading: Abu Ghuddah: Hasan Sahih · Al-Albani: Hasan Sahih · Zubair Ali Zai: Hasan
Text from the public-domain hadith-api dataset. Numbering follows that dataset and can differ by a few from some printed editions — check the wording, not only the number.