Camera zooms in on a pistol that someone pockets. Therefore, that pistol will be used later.
It happens in nearly every movie made since the 60s.