Jabir bin Abdullah reported,

He said, I heard the Messenger of Allah ﷺ say, "There is no one who makes a supplication except that Allah grants him what he asked for, or wards off from him an equivalent harm, so long as he does not supplicate for something sinful or for the severing of family ties."

Azami 10923

Hasan

عن جابر

قال سمعت رسول الله ﷺ يقول: ما من أحد يدعو بدعاء إلا آتاه الله ما سأل أو كف عنه من السوء مثله ما لم يدع بإثم أو قطيعة رحم.

الأعظمي 10923حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Supplications, remembrances, and prayer upon the chosen Prophet ﷺ
Chapter
Rulings on supplication
Section
Supplication of the Muslim is answered as long as he does not hasten the response, or supplicate for sin, or severing ties of kinship
Numbering
Jami al-Kamil 10923 (2nd edition)
Azami 10923