Jabir (May Allah be pleased with him) reported:
The Messenger of Allah (ﷺ) said, "Do not invoke curses on yourself or on your children or on your possessions lest you should happen to do it at a moment when the supplications are accepted, and your prayer might be granted."[Muslim]. (JA)
App reference (JA): Book 17, Hadith 33 (JA)
Arabic/English book reference (JA): Book 17, Hadith 1497 (JA)