Ayesha reported,

Abu Bakr came in to see the Messenger of Allah ﷺ wanting to speak with him while Ayesha was praying. The Messenger of Allah ﷺ said to her, "Hold to the comprehensive ones," or some similar phrase.When Ayesha finished her prayer, she asked him about that, and he said to her, "Say,'O Allah, I ask You for all good, both immediate and deferred, what I know of it and what I do not know. I seek refuge in You from all evil, both immediate and deferred, what I know of it and what I do not know. I ask You for Paradise and for whatever brings me near to it of word or deed, and I seek refuge in You from the Fire and from whatever brings me near to it of word or deed. I ask You for the good that Your servant and messenger Muhammad ﷺ asked You for, and I seek refuge in You from what Your servant and messenger Muhammad ﷺ sought refuge with You from. And I ask You that whatever You have decreed for me, You make its outcome rightly guided.'"

Azami 11378

Sahih

عن عائشة

أن أبا بكر دخل على رسول الله ﷺ فأراد أن يكلمه وعائشة تصلي فقال لها رسول الله ﷺ: عليك بالكوامل أو كلمة أخرى فلما انصرفت عائشة سألته عن ذلك فقال لها قولي: اللهم إني أسألك من الخير كله عاجله وآجله ما علمت منه وما لم أعلم، وأعوذ بك من الشر كله عاجله وآجله ما علمت منه وما لم أعلم، وأسألك الجنة وما قرب إليها من قول أو عمل، وأعوذ بك من النار وما قرب إليها من قول أو عمل، وأسألك من الخير ما سألك عبدك ورسولك محمد ﷺ، واستعيذك مما استعاذك منه عبدك ورسولك محمد ﷺ، وأسألك ماقضيت لى من أمر أن تجعل عاقبته رشداا.

الأعظمي 11378صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Supplications, remembrances, and prayer upon the chosen Prophet ﷺ
Chapter
Comprehensive and general supplications
Section
Miscellaneous on supplication
Numbering
Jami al-Kamil 11378 (2nd edition)
Azami 11378