Muhammad bin Kaab reported,

Abdullah bin Yazid al-Khatmi reported, and I believe he traced it back to the Prophet ﷺ, that the Prophet ﷺ used to say, "Allah, grant me Your love and the love of whatever is beneficial to me in Your sight. Allah, whatever You provide me of the things I love, make it a source of strength for me in what You love, and whatever You withhold from me of the things I love, make it free time for me to devote to what You love."

Azami 11377

Sahih

عن محمد بن كعب القرظي

عن عبد الله بن يزيد الخطمي، أراه رفعه إلى النبي ﷺ أن النبي ﷺ كان يقول: اللهم ارزقني حبك وحب ما ينفعني حبه عندك، اللهم ما رزقتني مما أحب، فاجعله لي قوة فيما تحب، وما زويت عني مما أحب، فاجعله لي فراغا فيما تحب.

الأعظمي 11377صحيح
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 11377 (2nd edition)
Azami 11377