Abdullah bin Amr bin As reported,

The Messenger of Allah ﷺ said, "Hearts are vessels, and some are more retentive than others. So when you ask Allah عز وجل, people, ask Him while being certain of His response, for Allah does not answer the supplication of a servant who calls upon Him from a heedless heart."

Azami 10910

Hasan

عن عبد الله بن عمرو

أن رسول الله ﷺ قال: القلوب أوعية وبعضها أوعى من بعض، فإذا سألتم الله عز وجل، أيها الناس، فاسألوه وأنتم موقنون بالإجابة، فإن الله لا يستجيب لعبد دعاه عن ظهر قلب غافل.

الأعظمي 10910حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Supplications, remembrances, and prayer upon the chosen Prophet ﷺ
Chapter
Rulings on supplication
Section
Allah does not accept the supplication of a servant whose heart is heedless
Numbering
Jami al-Kamil 10910 (2nd edition)
Azami 10910