To give someone the advice not to do something specific. It is the opposite of 'jemandem zu etwas raten' (to advise someone to do something).
example
Ich muss dir dringend davon abraten, dieses Auto zu kaufen.
I must strongly advise you against buying this car.
Usage tips
Separable verb
'Abraten' (to advise against) is a separable verb. The prefix 'ab-' comes at the end in a main clause. In subordinate clauses and in the infinitive with 'zu', the verb stays together.
EXAMPLE
Mein Freund rät mir von dieser Reise ab.
My friend advises me against this trip.
Fixed preposition and case
The structure is fixed: you advise 'jemandem' (someone, dative) 'von etwas' (against something, dative) 'ab'. Make sure to use the dative for both the person and the thing.
EXAMPLE
Die Expertin hat uns von einer schnellen Entscheidung abgeraten.
The expert advised us against making a quick decision.
Use with infinitive clause
When advising against an action, an infinitive construction with 'zu' is often used. In that case, the pronoun 'davon' is used as a placeholder.
EXAMPLE
Ich rate dir davon ab, den Job sofort zu kündigen.
I advise you against quitting the job immediately.
Compare with
antonym
abraten vs empfehlen
to recommend
'empfehlen' and 'abraten' are opposites. With 'empfehlen', you say that someone should do, choose, or buy something because you think it is good. With 'abraten', you say the opposite: someone would be better off not doing something because you see problems or disadvantages. So both words are used when giving advice, but the direction is different: empfehlen means more like 'yes', while abraten means more like 'no'.
abraten
Sie rät mir vor dem Termin davon ab, wichtige Unterlagen zu Hause zu lassen.
Before the appointment, she advises me not to leave important documents at home.
empfehlen
In der Pause empfehle ich ihr ein ruhiges Hotel für die Reise.
During the break, I recommend a quiet hotel to her for the trip.