Hold Monster, Mass

(Player's Handbook v.3.5, p. 241)

Enchantment (Compulsion) [Mind-Affecting]
Level: Sorcerer 9, Wizard 9, Beguiler 9, Sha'ir 9, Death Master 9,
Target: One or more creatures, no two of which can be more than 30 ft. apart

This spell functions like hold person, except that it affects multiple creatures and holds any living creature that fails its Will save.