I had a set time when I would come to the Messenger of Allah ﷺ. When I arrived, I would seek permission to enter. If I found him praying, he would clear his throat and I would go in. If I found him free, he would grant me permission.
أخبرنا محمد بن قدامة قال حدثنا جرير عن المغيرة عن الحارث العكلي عن أبي زرعة بن عمرو بن جرير قال حدثنا عبد الله بن نجي
كان لي من رسول الله ﷺ ساعة آتيه فيها فإذا أتيته استأذنت إن وجدته يصلي فتنحنح دخلت وإن وجدته فارغا أذن لي
No references are available.
[Sahih] It is in Sunan al-Kubra, hadith no. 1134, and see the following hadith no. 1214.