that is a legal move bro
its name "al passant"
you ned first know all the game rules
recomend you the lessons for beginners on chess.com
If you need help, please contact our Help and Support team.
Check out this #chess game: ZournaGs vs harry_123456789012 - https://www.chess.com/game/live/147925033760