Comments

You obviously had to give your passport to the UAE authorities to be granted your UAE work visa and your Saudi visa was still valid at that time, so why would you think your Saudi visa would prevent your entry into the UAE ?

Lots of people myself included, have visas that are still valid and travel into other countries on other visas.

You should have your exit permit from the Kingdom of Saudi Arabia before you leave and you already have your UAE visa , so I don't see a problem.