Engine light comes on for a few hours and then off again
Just need to have the vehicle scanned for any trouble codes. This would let you know why the engine light is coming on. Write down the codes.
Double check the gas cap seating, also
Search Mercedes-Benz E-Class Questions
Mercedes-Benz E-Class Experts