Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ahmad:26291ʿAbd al-Wahhāb > Saʿīd > Ayyūb > ʿAbdullāh b. Shaqīq > ʿĀʾishah Wqāl Marrah Ukhrá al-Khaffāf > Ibn ʿAbbās

[Machine] The Prophet ﷺ used to have headaches while he was fasting. Muhammad ibn Ja'far said in his narration from Sa'id from Ayyub from Abd Allah ibn Shaqiq from Ibn Abbas, and Al-Khaffaf said so as well on another occasion.  

أحمد:٢٦٢٩١حَدَّثَنَا عَبْدُ الْوَهَّابِ عَنْ سَعِيدٍ عَنْ أَيُّوبَ عَنْ عَبْدِ اللهِ بْنِ شَقِيقٍ عَنْ عَائِشَةَ وقَالَ مَرَّةً أُخْرَى الْخَفَّافُ عَنِ ابْنِ عَبَّاسٍ

أَنَّ النَّبِيَّ ﷺ كَانَ يُصِيبُ مِنَ الرُّءُوسِ وَهُوَ صَائِمٌ وقَالَ مُحَمَّدُ بْنُ جَعْفَرٍ يَعْنِي فِي حَدِيثِهِ عَنْ سَعِيدٍ عَنْ أَيُّوبَ عَنْ عَبْدِ اللهِ بْنِ شَقِيقٍ عَنِ ابْنِ عَبَّاسٍ وَكَذَا قَالَ الْخَفَّافُ مَرَّةً أُخْرَى