Retinol should always be applied in the evening as it’s very sensitive to light, which is why it’s usually packaged in a dark container.
To prevent your skin from sun damage, apply just before you go to bed and allow the product to work its magic while you sleep.