Valmiki Ramayana Kishkindha Kanda Sarga 46 Shloka 3
Original Shlokaयदा तु दुन्दुभिं नाम दानवं महिषाकृतिम्। परिकालयते वाली मलयं प्रति पर्वतम्।।4.46.3।। तदा विवेश महिषो मलयस्य गुहां प्रति। विवेश वाली तत्रापि मलयं तज्जिघांसया।।4.46.4।।
1 source checked for this shloka
वाली Vali, महिषाकृतिम् in buffalo form, दुन्दुभिं नाम named Dundubhi, दानवम् demon, यदा when, मलयं पर्वतं प्रति till the mount Malaya, प्रतिकालयते wished to kill him, तदा then, महिषः buffalo, मलयस्य Malaya's, गुहां प्रति towards the cave, विवेश entered, वाली Vali, तज्जिघांसया with the intention of killing him, तत्रापि into that, मलयम् Malaya, विवेश entered.
Vali chased the demon Dundubhi in buffalo form into a cave of mount Malaya in order to kill him.