かえ ぎわでした
kaerigiwadeshita

Noun
Desu Copula

The polite past form of 帰り際

1. Was leaving; It was when leaving

Past/Perfective
Polite