Peace be upon you. If a man experiences a wet dream after Fajr prayer and just before Dhuhr prayer during Ramadan, his fast remains valid. According to Grand Ayatollah Khamenei and Grand Ayatollah Sistani, if semen is released from a fasting person without their choice during sleep or wakefulness, it does not invalidate their fast. May you be successful in all good.