NASA has confirmed that solar wind can generate water on the Moon. In a recent lab experiment, researchers simulated lunar conditions by exposing Apollo 17 soil samples to a beam of charged particles, mimicking solar wind. This process led to the formation of hydroxyl and possibly water molecules, supporting the theory that solar wind contributes to lunar water formation.
Read more at Interesting Engineering
NASA explains how Solar winds could help form water on the Moon