하기 전에

before doing

→ 하다
phrase Rare #24,323
before doing Used after a noun or verb stem to mean “before doing something.” In this expression, 하다 (“to do”) is nominalized as 하기, followed by 전에 (“before”).
KO: 투표를 하기 전에 알아야 할 것이 있어요.
EN: There is something you should know before voting.

우승을 하기 전에 만족하지 않으실 거 죠?

You won't be satisfied until you win, right?

— 세나: F1의 신화 (2010)