śrī-śuka uvāca
narakasya sakhā kaścid
dvivido nāma vānaraḥ
sugrīva-sacivaḥ so 'tha
bhrātā maindasya vīryavān
sri-sukah uvaca -- Sukadeva Gosvami said; narakasya -- of the demon Naraka; sakha -- friend; kascit -- a certain; dvividah -- Dvivida; nama -- by name; vanarah -- an ape; sugriva -- King Sugriva; sacivah -- whose adviser; sah -- he; atha -- also; bhrata -- the brother; maindasya -- of Mainda; virya-van -- powerful.
Srila Jiva Gosvami points out some interesting facts about the ape Dvivida. Although Dvivida was an associate of Lord Ramacandra's, he later became corrupted by bad association with the demon Naraka, as stated here: narakasya sakha. This bad association was the reaction for an offense Dvivida had committed when, being proud of his strength, he disrespected Lord Ramacandra's brother Lakshmana and others. Those who worship Lord Ramacandra sometimes chant hymns addressed to Mainda and Dvivida, who are attendant deities of the Lord. According to Srila Jiva Gosvami, the Mainda and Dvivida mentioned in this verse are empowered expansions of these deities, who are residents of Lord Ramacandra's Vaikuntha domain.
Srila Visvanatha Cakravarti Thakura concurs with Srila Jiva Gosvami's view that Dvivida was ruined by bad association, which was a punishment for his having disrespected Sriman Lakshmana. Srila Visvanatha Cakravarti states, however, that the Mainda and Dvivida mentioned here are actually the eternally liberated devotees addressed as attendant deities during the worship of Lord Ramacandra. The Lord arranged their degradation, he says, to show the evil of the bad association that results from offending great personalities. Thus Srila Visvanatha Cakravarti compares the fall of Dvivida and Mainda to that of Jaya and Vijaya.