Positioning is very important and then the tug intensity - gradual to constant pull than jerking that may result in flip instantly.
Well done @Emmanuel
Key things for every offroader to notice and learn here:
Tried self recovering first to the max.
Clear sand from front tires on both sides.
Identify a safe spot to recover with least force - Front and left side.
Position car with utmost precision to deliver just a minimal tug at right angle.
Stuck 4x4 wheels pointing left to support the recovery process by using engine power.
Started with a soft tug and then applied a pulling strength and not a jerk to cause a flip.