Valmiki Ramayana Yuddha Kanda Sarga 39 Shloka 17
Original Shlokaऋक्षास्सिंहावराहाश्चमहिषावारणामृगाः । तेनशब्देनवित्रस्ताजग्मुर्भीतादिशोदश ।।6.39.17।।
1 source checked for this shloka
तेन by that, शब्देन sound, ऋक्षाः Bears, सिंहावराहश्च lions and pigs, महिषाः buffaloes, वारणामृगाः elephants, वित्रस्ताः alarmed, भीताः frightened, दश ten, दिशः directions, जग्मुः went.
Alarmed by that sound the Bears, lions, pigs, elephants, buffaloes were frightened and went in all the ten directions.