discourage (someone) from (something)
To dissuade or deter someone from doing something. I tried to discourage my daughter from going to that party, but of course she didn't listen to me.
discourage someone from something
to dissuade someone from doing something. I hope I can discourage Tom from leaving. I do not want to discourage you from further experimentation.