how long should you hold your pee before taking a pregnancy test

How long should I hold my pee before taking a pregnancy test to get accurate results? I just peed at 12pm, and I wake up for work at 5am