lock someone out
— phrasal verb with lock us/lɑk/verb [ I/T ]
to prevent someone from getting into a building, room, or vehicle:
I forgot that my dad didn't have keys, and I locked him out of the house.
The door slammed and our keys were inside – so we were locked out (= unable to get in).