かえ ぎわであれば
kaerigiwadeareba

Noun
Da Copula

The "-eba" conditional form ("if/when…") of 帰り際

1. If/when leaving; At the time of leaving; When departing

Ba Conditional