がけではありませんでした
kigakedewārimasendeshita

Noun
Desu Copula

The polite, past negative form of 来がけ

1. Wasn't on the way.; Hadn't just arrived.

Past/Perfective
Negative
Polite
Formal Register