Could be a few things..
Could be bad gas..
Remedy; Put some dry gas in the tank..
Could be "pre-ignition",, which is unburned gas..
Remedy; put some octane boost in the tank..
Could be low on oil..
Remedy; obvious..
Could be running hot..
Could be a dirty or stuck or burnt valve(s)..
Could be allot of things..