Mishkat al-Masabih 2236
وَعَنْ جَابِرٍ رَضِيَ اللَّهُ عَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «مَا مِنْ أَحَدٍ يَدْعُو بِدُعَاءٍ إِلَّا آتَاهُ اللَّهُ مَا سَأَلَ أَوْ كَفَّ عَنْهُ مِنَ السُّوءِ مِثْلَهُ مَا لَمْ يَدْعُ بِإِثْمٍ أَوْ قَطِيعَةِ رحم» . رَوَاهُ التِّرْمِذِيّ
From Jabir, may Allah be pleased with him, who said: The Messenger of Allah ﷺ said: "There is no one who makes a supplication except that Allah gives him what he asked, or holds back from him an equal amount of evil, as long as he does not supplicate for sin or for cutting ties of kinship." Reported by at-Tirmidhi.