The state-run Saudi Press Agency identified the men as soldiers working in the Defense Ministry.
It did not elaborate on how the men aided the kingdom’s enemies. Saudi Arabia is fighting Yemen’s Iranian-backed Houthi rebels. The kingdom also views Iran as a regional archrival.
The kingdom said the three men were convicted in court and a later royal order served as a death warrant.