The Prophet (peace and blessings be upon him) forbade tying up a living creature to torment it, and castrating animals.