I have heard of it
It has never happened to me, but I have heard stories.
If the gun is cleaned, oiled and it good working order it will never happen.
Also the safety should be on, to prevent this, still never rely on on guns safety.
99.9 % of these that fire without the trigger being pulled are human error.
But of course they always blame the gun not themselves.