From this question:
Airlines use Timatic to display information about visas necessary for particular travelers going (or transiting in) a specific place.
Whilst I don’t know your destination, the information on transmitting will be the same for most countries.
Putting in your information with a random destination gives this:
TWOV (Transit Without Visa):
Visa required, except for Passengers transiting through Dammam (DMM), Jeddah (JED) or Riyadh (RUH) with a confirmed onward ticket for a flight to a third country within 12 hours. They must stay in the international transit area of the airport and have documents required for the next destination.
As your connection is 13 hours, you will need a visa.