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:4521Abū al-ʿAbbās > Muḥammad b. Isḥāq > Saʿīd / Ibn ʿĀmir > Shuʿbah > ʿĀṣim > Abū Mijlaz

[Machine] Ibn Umar woke up and did not perform the evening prayer, or he almost missed it. He prayed the morning prayer, or he would pray it if Allah wills, and then he performed the night prayer. This is closer to the truth and Allah knows best.  

البيهقي:٤٥٢١وَقَدْ أنبأ أَبُو عَبْدِ اللهِ وَأَبُو سَعِيدِ بْنُ أَبِي عَمْرٍو فِي هَذَا الْجُزْءِ قَالَا ثنا أَبُو الْعَبَّاسِ ثنا مُحَمَّدُ بْنُ إِسْحَاقَ ثنا سَعِيدٌ يَعْنِي ابْنَ عَامِرٍ عَنْ شُعْبَةَ عَنْ عَاصِمٍ عَنْ أَبِي مِجْلَزٍ قَالَ

أَصْبَحَ ابْنُ عُمَرَ وَلَمْ يُوتِرْ أَوْ كَادَ يُصْبِحُ أَوْ أَصْبَحَ إِنْ شَاءَ اللهُ تَعَالَى ثُمَّ أَوْتَرَ وَهَذَا أَشْبَهُ وَاللهُ أَعْلَمُ