6th-level necromancy
Casting Time 1 minute
Duration Instantaneous
Range 10 feet
Components V S M (Two clay pots: one filled with grave dirt and one with brackish water, one 150gp black onyx for each corpse)

This spell can only be cast at night. Up to three corpses of Medium or Small humanoids you choose become ghouls under your control.

You can mentally command any or all of the ghouls as a bonus action if they are within 120 feet of you. If controlling all of them at once, you issue the same command to each one. You decide what action the ghoul will take and where it will move during its next turn, or you can issue a general command. If you issue no commands, the ghoul only defends itself against hostile creatures. Once given an order, the ghoul will follow it until its task is complete.

The ghouls are under your control for 24 hours, after which they stop obeying any given commands. To maintain control of the ghouls for another 24 hours, you must recast this spell on up to three of them before the current 24-hour period ends.

At Higher Levels. With a 7th-level spell slot, you can animate or reassert control over four ghouls; with an 8th-level spell slot, five ghouls or two ghasts or wights; and with a 9th-level spell slot, six ghouls, three ghasts or wights, or two mummies.