Ibn Abbas (may Allah be pleased with him) says that the Prophet (peace and blessings be upon him) forbade "confining a living creature (to kill it) and castrating livestock."
Al-Abbas said: No one narrated it except Ubaydullah, and it is regarded as gharib (unusual) from him.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب السبق والرمي / 19790