The order is not so strict; the adverbials of time are more mobile than the others. All of these are fine and essentially synonymous: I train with my friends at the gym every day at 6 o'clock. I train at the gym every day at 6 o'clock with my friends.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.