Slaughtering in the Name of Allah to feed guests or relatives

Q 8: Slaughtering animals for the sake of anyone other than Allah is prohibited and Shirk (associating others with Allah in His Divinity or worship). What is the Shari`ah (Islamic law) ruling on slaughtering animals for guests or relatives?

A: Slaughtering animals to draw closer to the person for whom the animals are slaughtered, or for the sake of bringing benefit or removing harm is Shirk. The Prophet (peace be upon him) cursed the person who slaughters for any one other than Allah. (Part No. 1; Page No. 213) But slaughtering in the Name of Allah in order to feed guests or relatives is permissible.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.