From the Super Mario Wiki
The Lucky Jewel is an item in Super Mario RPG: Legend of the Seven Stars. It ensures that Mario and his party get a LUCKY! Flower once per battle, if used before all enemies are defeated or run away. However, it can only be used a few times before vanishing completely from the player's inventory.
It can be bought from the Treasure Hunting Toad.