Have a look at this website:
UAE MOH - Issuing permission to import medicines for personal use
You can submit a request online to carry controlled drugs into the UAE for personal use. Providing the Ministry of Health approves your request, you simply take this approval with you when you travel. This is not mandatory but the other option is declaring what you have with customs when you arrive, which could be far more time consuming and perhaps problematic.