"Bonne chance!"
This literally translates to "good luck" and is used in all situations.
Here are a few other expressions you can use, depending on the context:
* "Je te souhaite bonne chance!" - "I wish you good luck!" (More formal)
* "Tout le meilleur!" - "All the best!" (Similar to "good luck")
* "On croise les doigts!" - "Fingers crossed!" (A more playful way to say good luck)
* "Surtout, ne stresse pas!" - "Don't stress, especially!" (This implies wishing them good luck and reminding them to stay calm)