This question already has an answer here:
I received a fully cooked 13 pound pit ham from work at 12 noon. It was refrigerated when I got it. I made it home 4 hours later after running errands and it was 38 degrees outside and the ham was in the car the whole time. I forgot to put the ham in the refrigerator and left it still in the bag and box on the floor in the kitchen. It was 10 pm before I remembered about it and I immediately put it in the refrigerator. Is it still safe to eat?