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.
ibnmajah:1152Abū Bakr b. Abū Shaybah > Abū Muʿāwiyah > ʿĀṣim > ʿAbdullāh b. Sarjis

“Which of your two prayers did you intend to be counted (i.e., accepted)?”  

ابن ماجة:١١٥٢حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ حَدَّثَنَا أَبُو مُعَاوِيَةَ عَنْ عَاصِمٍ عَنْ عَبْدِ اللَّهِ بْنِ سَرْجِسَ

أَنَّ رَسُولَ اللَّهِ ﷺ رَأَى رَجُلاً يُصَلِّي الرَّكْعَتَيْنِ قَبْلَ صَلاَةِ الْغَدَاةِ وَهُوَ فِي الصَّلاَةِ فَلَمَّا صَلَّى قَالَ لَهُ بِأَىِّ صَلاَتَيْكَ اعْتَدَدْتَ؟