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:5480[Chain 1] Abū ʿAbdullāh al-Ḥāfiẓ > ʿAlī b. Ḥamshādh al-ʿAdl > Abū Bakr al-Sadūsī > ʿĀṣim b. ʿAlī [Chain 2] Abū Saʿd al-Mālīnī > Abū Aḥmad b. ʿAdī > Muḥammad b. Yaḥyá And ʿAbd Allāh b. Muḥammad b. Ḥumayd al-Imām > ʿĀṣim b. ʿAlī > ʿIkrimah b. ʿAmmār > Yaḥyá b. Abū Kathīr > Anas

[Machine] That the companions of the Messenger of Allah ﷺ stayed in Ramahormuz for nine months, shortening the prayer.  

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

أَنَّ أَصْحَابَ رَسُولِ اللهِ ﷺ أَقَامُوا بِرَامَهُرْمُزَ تِسْعَةَ أَشْهُرٍ يَقْصُرُونَ الصَّلَاةَ