For example, there could be a big ritual yagna conducted for some common good such as a blessing for rains.
It could also be used in the context of public prayers or mass chanting of mantras for a social cause.
Many Hindu rituals and ceremonies end with a generic prayers such as Lokāḥ Samastāḥ Sukhino Bhavantu, meaning "Let the entire world be happy."
or Sarve Jana sukhino Bhavantu - Let the People of the world be happy.
While some yoga practitioners and Hindu scholars erroneously point to the Rig Veda or the invocation of the Katha Upanishad, the only written attribution or textual source of "lokah samastah sukhino bhavantu" seems to be stone inscriptions from the Rulers of the Sangama Dynasty (1336 A.D.-1485 A.D.).