Question :
Is it permissible to slaughter a sheep on Eid al-Adha with the intention of charity (sadaqah) on behalf of a sick person, and with the intention of udhiyah (sacrificial animal) at the same time?
The Answer :
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
The udhiyah (sacrificial animal) is an act of worship intended for its own sake; therefore, it must be slaughtered with the intention (niyyah) of udhiyah.
Whoever intends to draw closer to Allah through this act of obedience with the intention of udhiyah, and also intends to gift the reward to another person, there is no Islamic objection to that. And Allah Almighty knows best.