When is the best time to test?

I wake up every night at 4-5am and pee. I fall back asleep around 6ish and I’m up at 8-9 for the day. When should I take the pregnancy test? At 4-5am or 8-9am.