It could mean that he's thinking about you before he goes to bed, or it could just be a simple goodnight text. It's important not to read too much into it and to communicate with the guy to understand his intentions.