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.
bayhaqi:8085Abū Zakariyyā b. Abū Isḥāq > Abū ʿAbdullāh Muḥammad b. Yaʿqūb > Muḥammad b. ʿAbd al-Wahhāb > Jaʿfar b. ʿAwn > Misʿar > Ibn Abū Salamah from his father

[Machine] Regarding the qibla while fasting, he permitted it and a young man forbid it in the year 8086 AH. With its chain of narration, Anba' Mis'ar reported from Habib, from Mujahid, from Ibn Abbas something similar to that.  

البيهقي:٨٠٨٥أَخْبَرَنَا أَبُو زَكَرِيَّا بْنُ أَبِي إِسْحَاقَ أنبأ أَبُو عَبْدِ اللهِ مُحَمَّدُ بْنُ يَعْقُوبَ ثنا مُحَمَّدُ بْنُ عَبْدِ الْوَهَّابِ أنبأ جَعْفَرُ بْنُ عَوْنٍ أنبأ مِسْعَرٌ عَنِ ابْنِ أَبِي سَلَمَةَ عَنْ أَبِيهِ قَالَ سَأَلَ شَيْخٌ أَبَا هُرَيْرَةَ

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