Star Trek: The Next Generation - Accept Your Fate
Data is beamed back to the Enterprise before he can act against his programming.