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:5446[Chain 1] Abū ʿAlī al-Rūdhbārī > Abū Bakr b. Dāsah > Abū Dāwud > Ibn Bashhār [Chain 2] Abū ʿAbdullāh al-Ḥāfiẓ > Abū al-Faḍl b. Ibrāhīm > Aḥmad b. Salamah > Muḥammad b. Bashhār al-ʿAbdī > Muḥammad b. Jaʿfar > Shuʿbah > Yaḥyá b. Yazīd al-Hunāʾī > Saʾalt Anas b. Mālik

[Machine] About the prayer palace, I used to go out to Al-Kufa and pray two Rak'ahs before returning. Anas said: When the Messenger of Allah ﷺ would go out a distance of three miles or three farsakhs, he would doubt the boundaries of the prayer palace. This is the wording of the Hadith of Ibn Salamah, and in the narration of Abu Dawood, he would pray two Rak'ahs without mentioning his statement, "I used to go out to Al-Kufa and pray two Rak'ahs."  

البيهقي:٥٤٤٦أَخْبَرَنَا أَبُو عَلِيٍّ الرُّوذْبَارِيُّ أنبأ أَبُو بَكْرِ بْنُ دَاسَةَ ثنا أَبُو دَاوُدَ ثنا ابْنُ بَشَّارٍ ح وَأَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ أنبأ أَبُو الْفَضْلِ بْنُ إِبْرَاهِيمَ ثنا أَحْمَدُ بْنُ سَلَمَةَ ثنا مُحَمَّدُ بْنُ بَشَّارٍ الْعَبْدِيُّ ثنا مُحَمَّدُ بْنُ جَعْفَرٍ ثنا شُعْبَةُ عَنْ يَحْيَى بْنِ يَزِيدَ الْهُنَائِيِّ قَالَ سَأَلْتُ أَنَسَ بْنَ مَالِكٍ

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

رَوَاهُ مُسْلِمٌ فِي الصَّحِيحِ عَنْ مُحَمَّدِ بْنِ بَشَّارٍ

See similar narrations below:

Collected by Aḥmad
ahmad:12313Muḥammad b. Jaʿfar > Shuʿbah > Yaḥyá b. Yazīd al-Hunāʾī > Saʾalt Anas b. Mālik > Qaṣr al-Ṣalāh

[Machine] I used to go out to Al-Kufa to pray two units of prayer before returning. Anas said, "Whenever the Messenger of Allah ﷺ went on a journey of three miles or three farsakhs, he would pray two units of prayer."  

أحمد:١٢٣١٣حَدَّثَنَا مُحَمَّدُ بْنُ جَعْفَرٍ حَدَّثَنَا شُعْبَةُ عَنْ يَحْيَى بْنِ يَزِيدَ الْهُنَائِيِّ قَالَ سَأَلْتُ أَنَسَ بْنَ مَالِكٍ عَنْ قَصْرِ الصَّلَاةِ قَالَ

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