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.
ahmad:598ʿAbdullāh > Abū Kurayb Muḥammad b. al-ʿAlāʾ > Ibn al-Mubārak > Yaḥyá b. Ayyūb > ʿUbaydullāh b. Zaḥr > ʿAlī b. Yazīd > al-Qāsim > Abū Umāmah

ʿAli ؓ said: I used to come to the Prophet ﷺ and ask permission to enter. If he was praying, he would say Subhan Allah, and if he was not praying, he would give me permission to enter.  

أحمد:٥٩٨حَدَّثَنَا عَبْدُ اللهِ حَدَّثَنِي أَبُو كُرَيْبٍ مُحَمَّدُ بْنُ الْعَلاءِ حَدَّثَنَا ابْنُ الْمُبَارَكِ عَنْ يَحْيَى بْنِ أَيُّوبَ عَنْ عُبَيْدِ اللهِ بْنِ زَحْرٍ عَنْ عَلِيِّ بْنِ يَزِيدَ عَنِ الْقَاسِمِ عَنْ أَبِي أُمَامَةَ قَالَ قَالَ

عَلِيٌّ كُنْتُ آتِي النَّبِيَّ ﷺ فَأَسْتَأْذِنُ فَإِنْ كَانَ فِي صَلاةٍ سَبَّحَ وَإِنْ كَانَ فِي غَيْرِ صَلاةٍ أَذِنَ لِي  


See similar narrations below:

Collected by Aḥmad
ahmad:767Yaḥyá b. Ādam > Ibn Mubārak > Yaḥyá b. Ayyūb > ʿUbaydullāh b. Zaḥr > ʿAlī b. Yazīd > al-Qāsim > Abū Umāmah > ʿAlī

When I asked permission to enter upon the Messenger of Allah ﷺ, if he was praying he would say Subhan Allah, and if not he would give permission.  

أحمد:٧٦٧حَدَّثَنَا يَحْيَى بْنُ آدَمَ حَدَّثَنَا ابْنُ مُبَارَكٍ عَنْ يَحْيَى بْنِ أَيُّوبَ عَنْ عُبَيْدِ اللهِ بْنِ زَحْرٍ عَنْ عَلِيِّ بْنِ يَزِيدَ عَنِ الْقَاسِمِ عَنْ أَبِي أُمَامَةَ عَنْ عَلِيٍّ قَالَ

كُنْتُ إِذَا اسْتَأْذَنْتُ عَلَى رَسُولِ اللهِ ﷺ إِنْ كَانَ فِي صَلاةٍ سَبَّحَ وَإِنْ كَانَ غَيْرَ ذَلِكَ أَذِنَ  

ahmad:809ʿAbdullāh > Abū Kurayb Muḥammad b. al-ʿAlāʾ > Ibn al-Mubārak > Yaḥyá b. Ayyūb > ʿUbaydullāh b. Zaḥr > ʿAlī b. Yazīd > al-Qāsim > Abū Umāmah

I used to go to the Prophet ﷺ and ask permission to enter. If he was praying, he would say Subhan Allah, and if he was not praying, he would give me permission to enter.  

أحمد:٨٠٩حَدَّثَنَا عَبْدُ اللهِ حَدَّثَنِي أَبُو كُرَيْبٍ مُحَمَّدُ بْنُ الْعَلاءِ حَدَّثَنَا ابْنُ الْمُبَارَكِ عَنْ يَحْيَى بْنِ أَيُّوبَ عَنْ عُبَيْدِ اللهِ بْنِ زَحْرٍ عَنْ عَلِيِّ بْنِ يَزِيدَ عَنِ الْقَاسِمِ عَنْ أَبِي أُمَامَةَ قَالَ قَالَ

عَلِيٌّ كُنْتُ آتِي النَّبِيَّ ﷺ فَأَسْتَأْذِنُ فَإِنَّ كَانَ فِي صَلاةٍ سَبَّحَوَإِنْ كَانَ فِي غَيْرِ صَلاةٍ أَذِنَ لِي