Here's a method for finding the resistors you need.
First, decide what is the maximum power dissipation you would want in the top resistor. Let's go with 1/4 W. You need to go with a higher rated resistor to give it a safety factor so use at least a 1/2 W one.
Now find what is the maximum voltage across the top resistor. If you're going from 600 V to 5 V it will be 595 V.
Find the resistance that will dissipate 1/4 W at 595 V.
$$
R = \frac{V^{2}}{P} = \frac{595V^2}{0.25W} = 1.4161 M\Omega
$$
So let's take the next even value, 1.5\$M\Omega\$
You need one that will handle the voltage and power, here's one that is rated 1/2W and 3500 V as an example.
Now you need to find the bottom resistor. The formula for this is:
$$ R2 = \frac{R1}{\frac{Vin}{Vout}-1}$$
Plugging in the values we get
$$ R2 = \frac{1.5M\Omega}{\frac{600}{5}-1} = 12605\Omega$$
You can use a 12k resistor or 12.4k from the E96 1% series would be closer. You don't need to worry about the voltage and power ratings on this one, it's not going to have more than 5 V across it and the maximum power will be around 2 mW.
Now check that it's correct using the voltage divider formula \$Vout=Vin\cdot\frac{R2}{R1+R2}\$, using a 12.4k we get:
$$
Vout = 600\cdot\frac{12400\Omega}{1.5M\Omega+12400\Omega} = 4.92
$$
So, pretty close.
If you need lower value resistors to satisfy the impedance requirements of your measuring device you can go to a higher wattage for the top resistor. At 1/2 W maximum dissipation (using a 1 W resistor) gets you around 700k for the top and 6k for the bottom.
You need to take resistor tolerances into account as well. Having the top resistor a little low in value or the bottom one a little high could put the output voltage over the allowable voltage into your measurement device, best to check it before connecting.
Also the measurement device loading will affect the output voltage, if you're going into an impedance less than around 100 X the bottom resistor value you either need a high impedance buffer or you need to adjust the bottom resistor value up a bit to compensate.
You can adapt this to similar problems by just changing the values.