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.
كُنْتُ إِذَا اسْتَأْذَنْتُ عَلَى رَسُولِ اللهِ ﷺ إِنْ كَانَ فِي صَلاةٍ سَبَّحَ وَإِنْ كَانَ غَيْرَ ذَلِكَ أَذِنَ