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:5113Abū Saʿīd b. Abū ʿAmr > Abū al-ʿAbbās Muḥammad b. Yaʿqūb > al-Rabīʿ b. Sulaymān > al-Shāfiʿī > ʿAbd al-Majīd > Ibn Jurayj > ʿAṭāʾ

[Machine] If you arrive at 'Asr' time and have not prayed 'Dhuhr', then you should combine the prayer you arrived with the Imam of 'Dhuhr' and pray 'Asr' afterward.  

البيهقي:٥١١٣أَخْبَرَنَا أَبُو سَعِيدِ بْنُ أَبِي عَمْرٍو ثنا أَبُو الْعَبَّاسِ مُحَمَّدُ بْنُ يَعْقُوبَ أنبأ الرَّبِيعُ بْنُ سُلَيْمَانَ أنبأ الشَّافِعِيُّ أنبأ عَبْدُ الْمَجِيدِ عَنِ ابْنِ جُرَيْجٍ عَنْ عَطَاءٍ قَالَ

إِنْ أَدْرَكْتَ الْعَصْرَ وَلَمْ تُصَلِّ الظُّهْرَ فَاجْعَلِ الَّتِي أَدْرَكْتَ مَعَ الْإِمَامِ الظُّهْرَ وَصَلِّ الْعَصْرَ بَعْدَ ذَلِكَ