Bus in Dubai around the clock?
Then the bus N55. The last one seems to go at 3:55. The schedule is available on Yandex. The last one according to the schedule starts from Gubeiba station at 3:55. It takes almost 2 hours to get to the airport. Theoretically, you will be there by 6 a.m. Otherwise, it runs every hour, I think.