Hadith 899

(حديث مرفوع) حَدَّثَنَا عَلِيُّ بْنُ إِسْحَاقَ ، أَنْبَأَنَا عَبْدُ اللَّهِ ، أَنْبَأَنَا يَحْيَى بْنُ أَيُّوبَ ، عَنْ عُبَيْدِ اللَّهِ بْنِ زَحْرٍ ، عَنْ عَلِيِّ بْنِ يَزِيدَ ، عَنِ الْقَاسِمِ ، عَنْ أَبِي أُمَامَةَ ، أَنَّ عَلِيَّ بْنَ أَبِي طَالِبٍ رَضِيَ اللَّهُ عَنْهُ أَخْبَرَهُ : أَنَّهُ كَانَ يَأْتِي النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ، قَالَ : فَكُنْتُ " إِذَا وَجَدْتُهُ يُصَلِّي سَبَّحَ فَدَخَلْتُ ، وَإِذَا لَمْ يَكُنْ يُصَلِّي أَذِنَ " .
Sayyiduna Ali (may Allah be pleased with him) narrates that I used to present myself before the Prophet (peace and blessings of Allah be upon him). If the Prophet (peace be upon him) was standing and performing prayer at that time, he would say "Subhan Allah," and if he was not performing prayer at that time, he would grant permission as it was (and there would be no need to say Subhan Allah).
Hadith Reference مسند احمد / مسند الخلفاء الراشدين / 899
Hadith Grading حکم دارالسلام: إسناده مسلسل بالضعفاء