have a bad night
To sleep poorly or restlessly. I had a bad night last night, so I hope I don't doze off during the exam.
have a good/bad ˈnight
sleep well/badly during the night: He was very tired after his bad night, and wanted very much to take the day off work.