Geas
You give a verbal command to a creature that you can see within range, ordering it to carry out some service or refrain from an action or a course of activity as you decide. The target must succeed on a Wisdom saving throw or have the Charmed condition for the duration. The target automatically succeeds if it can't understand your command.
While Charmed, the creature takes 5d10 Psychic damage if it acts in a manner directly counter to your command. It takes this damage no more than once each day.
You can issue any command you choose, short of an activity that would result in certain death. Should you issue a suicidal command, the spell ends.
A Remove Curse, Greater Restoration, or Wish spell ends this spell.
Using a Higher-Level Spell Slot. If you use a level 7 or 8 spell slot, the duration is 365 days. If you use a level 9 spell slot, the spell lasts until it is ended by one of the spells mentioned above.
Geas 5e 2024 vs. 2014 edition differences
The 2024 version clarifies that the target automatically succeeds on the Wisdom save if it can't understand the command, whereas the 2014 version states it is unaffected. The damage condition specifies "if it acts in a manner directly counter to your command" in 2024, whereas 2014 states "in a manner directly counter to your instructions." Duration with a 7th or 8th level slot is 365 days in 2024, compared to 1 year in 2014.