If the target permanent is an illegal target by the time Beast Within tries to resolve, the spell won't resolve. No player creates a Beast token. If the target is legal but not destroyed (most likely because it has indestructible), its controller does create a Beast token.

Artwork
Loading artwork…
Beast Within
Star Trek Commander · #459 · EN
Nonfoil—Foil—
Card rules
Destroy target permanent. Its controller creates a 3/3 green Beast creature token.
"I have existed from the dawn of time, and I shall live beyond its end! In the meantime, I shall feed." —Redjac
Uncommon · Illustrated by Filipe Pagliuso
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
PreDH Legal
Timeless Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
Pioneer Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions