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:5479Abū ʿAbdullāh al-Ḥāfiẓ And ʾAbū Saʿīd b. Abū ʿAmr > Abū al-ʿAbbās Muḥammad b. Yaʿqūb > Yaḥyá b. Abū Ṭālib > ʿAbd al-Wahhāb b. ʿAṭāʾ > Hishām > Yaḥyá b. Abū Kathīr > Ḥafṣ b. ʿUbaydullāh b. Anas

[Machine] Anas resided in Damascus with Abd al-Malik ibn Marwan for two months, performing the prayer of a traveler.  

البيهقي:٥٤٧٩أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ وَأَبُو سَعِيدِ بْنُ أَبِي عَمْرٍو قَالَا ثنا أَبُو الْعَبَّاسِ مُحَمَّدُ بْنُ يَعْقُوبَ ثنا يَحْيَى بْنُ أَبِي طَالِبٍ أنبأ عَبْدُ الْوَهَّابِ بْنُ عَطَاءٍ أنبأ هِشَامٌ عَنْ يَحْيَى بْنِ أَبِي كَثِيرٍ عَنْ حَفْصِ بْنِ عُبَيْدِ اللهِ بْنِ أَنَسٍ

أَنَّ أَنَسًا أَقَامَ بِالشَّامِ مَعَ عَبْدِ الْمَلِكِ بْنِ مَرْوَانَ شَهْرَيْنِ يُصَلِّي صَلَاةَ الْمُسَافِرِ