Failure should not discourage you from trying again.
My parents discouraged me from quitting my job.
They discouraged her from sharing the password.
He discouraged her from overthinking everything.
They discouraged me from taking the risky route.
We are discouraged to make a decision right now.
She discouraged him from making a rushed decision.
The guide discouraged us from walking alone at night.
His doctor discouraged him from eating too much salt.
I discouraged my friend from spending too much money.
The teacher discouraged students from using their phones.