Swearing to slay someone as a threat

A: If anyone swears by Allah to slaughter their son, it is not permissible for them to do so and it is obligatory that they should pay the Kaffarah (expiation) for breaking their oath. This is to feed or clothe ten Miskin (needy people) or free a believing slave. If they cannot do any of these things, they should observe Sawm (Fasting) for three days.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.