A small boy has fallen asleep on the inside of a car.