When you are kicked out of the party and rejoin due to a "next" raid phase start, you lose your selected pokemon.