Think there are two identical Hot bodies one is on Earth and other in empty space. Both are at same temperature, same mass and identical in all perspectives, now if these two start losing heat which one will reach the local room temperature faster.
Things to consider:
The temperature of the space (when in shadow) is -270 C, Average room temp on earth is 20 degree centigrade. In the space, no gasses of any kind are present (Its pure vacuum).