The earliest widely cited depictions of sails are Egyptian, from about 3200 BCE. Boats on the Nile could sail upstream on the wind and drift back down.
In Kuwait, boat remains from about 5500 to 5000 BCE show early seafaring in the Persian Gulf, though whether those boats carried sails is uncertain.