If your dog is shaking and it's not cold outside or in the house then the dog could be shaking due to serious problems like Kidney disease, poisoning or any other injuries.
It could also be that your dog is just nervous, has anxiety or nerve problems.
If your dog continues to shake over a few days you should make an appointment to have the dog checked out at the vet to rule out any serious problems.