Best time to take a hpt

So I've heard first thing in the morning is the best time... Is that as soon as u wake up? I always wake up in the night for a pee..