You let the earth answer for you. The weapon of the attacker that hit you becomes locked inside a block of rock. The attacker can let go of it, or use its action to make a Strength test against your spell save DC to pull it free. If you have Stone Whirl active, an attack that is turned aside by the DEF its clusters grant counts as having hit you for the purpose of this reaction.
LevelLevel 3
SchoolElemental
Casting time1 reaction, which you take when a creature hits you with a melee attack
RangeSelf
DurationInstantaneous
Components
V