Quick answer
Береги́ себя́!
beregí sebyá — plus удачи and не боле́й — the warm Russian goodbyes
The options
себя́ again
Береги́ себя́ is literally “guard yourself” — the reflexive object себя́ doing its usual job. The polite version adds -те: береги́те. The verb is бере́чь, one of the few verbs in -чь.
Which goodbye when
Всего́ хоро́шего is the all-purpose warm parting, fine with strangers. Береги́ себя́ is for people you care about. Не боле́й is said to anyone in autumn and winter — a completely ordinary farewell, not a comment on their health.
What you hear back
Typical mistakes
Береги́ тебя́!
Береги́ себя́!
The reflexive object is себя́.
Береги́ себя́ — to a stranger
Береги́те себя́.
Add the polite -те.
Check yourself
Which is correct?