Completely unexpected diagnosis

Have recently been told my husband has only a few months left to live. He has lung cancer but had not suffered with any symptoms. It was only discovered when he got pneumonia 2 weeks ago and needed a chest X-ray. He knows he can’t have treatment but he doesn’t know and doesn’t want to know his life expectancy. I can’t believe this is happening.