If he brought it up himself, out of thin air, it's likely bringing it up to him would be fine. But you can always ask him first. Ask if it's ok to discuss his backstory.
And perhaps ease into things about God rather than all at once. Mention that you pray for him. Offer to pray with him if he...