This was the result of the secret Nazi-Soviet Pact (known as the Molotov-Ribbentrop Pact) on the map
The Soviet Military Parade in Brest-Litovsk, Poland, (nowadays in Belarus) on September 22, 1939, marked the citys handover to the Red Army. 2,5 min video:
https://www.youtube.com/watch?v=SKo-UPB6Yo4