Dogs pant for various reasons.
They pant to cool down, but they also pant when they are under stress, in pain, or afraid.
If your dog is panting but has no other symptoms, keep a watch on him.
If it still seems excessive after a day or so, or if he develops more symptoms, I'd schedule an appointment with your Vet.