Yosef Karo, Shulchan Aruch — Yoreh Deah 5 The one who slaughters for kodashim…
“ Seif 3 Two people shechted: Whether they grasped one knife, or each held a knife in his hand, and one of them intended for the sake of something that invalidates — it's invalid. So too if one shechted after the other and one of them intended for something that invalidates, it's invalid. When does this apply? When he had a share in it. But if he has no share in it then it's not forbidden, for an Yisraelite man cannot make forbidden something that's not his, for his intent could only be to afflict. ”
