It is narrated from the Mother of the Believers, Sayyidah Aishah (may Allah be pleased with her), that she said: "Whenever the Messenger of Allah (peace and blessings be upon him) raised his blessed head towards the ceiling of the house, he would say these words: 'Subhanaka Allahumma wa bihamdika, astaghfiruka wa atubu ilayk' (Glory be to You, O Allah, and with Your praise; I seek Your forgiveness and I repent to You)." Sayyidah Aishah (may Allah be pleased with her) said: I asked him (peace and blessings be upon him) about these words, and he (peace and blessings be upon him) said: "I have been commanded to say them."
No one narrated this hadith from al-Hakam (may Allah have mercy on him) except Amr bin Abd al-Jabbar, and from Amr only al-Nadr bin Abi al-Nadr, while Abu al-Ash'ath is alone in narrating it.
Hadith Referenceالمعجم الأوسط / باب الميم / 7172
Hadith Gradingمحدثین:فيه من لم يعرفه الهيثمي
Hadith Takhrij«قال الهيثمي: وفيه من لم أعرفه «مجمع الزوائد ومنبع الفوائد، ج 10، ص 142»»