Formal:
* J'espère que vous avez passé une agréable soirée. (I hope you had a pleasant evening.)
* J'espère que vous avez bien dormi. (I hope you slept well.)
Informal:
* J'espère que tu as passé une bonne soirée. (I hope you had a good evening.)
* J'espère que tu as bien dormi. (I hope you slept well.)
* Bonne nuit ! (Good night!)
You can also add a specific detail, like:
* J'espère que le concert était bien. (I hope the concert was good.)
* J'espère que la fête était réussie. (I hope the party was a success.)
The best choice depends on your relationship with the person and the specific situation.