Saying ‘all the best to you can be a formal way to wish someone good luck. You can also use it in a text message to someone you don't talk to often.