According to ChatGPT it takes at least 3 kWh to desalinate 1000l of salt-water.
Following that math and its estimates on solar panels that would come down to 0.003 m^2 of solar panels per liters.
UAE is about 83.6 billion m^2, lets assume half of that can be covered in solar panels, so that would be enough to desalinate 13 trillion liters of water.
That sounds like it could be enough for a country like UAE by a factor of 10, if ChatGPT's math is right (probably not) and water can be desalinated instantly (probably not).