Ramayana. Rama's Alliance with Sugriva.
It was not long before Rama and Lakshman reached the Rishyamukha mountain, where Sugriva dwelt. Now this Sugriva lived in exile, driven from home and robbed of his wife by his cruel brother Vali; and when he saw the two great-eyed heroes bearing arms, he deemed them to have been sent by Vali for his destruction. So he fled away, and he sent Hanuman disguised as a hermit to speak with the knights and learn their purpose. Then Lakshman told him all that had befallen, and that Rama now sought Sugriva's aid. So Hanuman, considering that Sugriva also needed a champion for the recovery of his wife and kingdom, led the knights to Sugriva, and there Rama and the monkey-chief held converse. Hanuman made fire with two pieces of wood, and passing sunwise about it, Rama and Sugriva were made sworn friends, and each bound himself to aid the other. They gazed at each other intently, and neither had his fill of seeing the other. Then Sugriva told his story and prayed Rama for his aid, and he engaged himself to overcome the monkey-chief's brother, and in return Sugriva undertook to recover Sita. He told Rama how he had seen her carried away by Ravana, and how she had dropped her veil and jewels, and he showed these tokens to Rama and Lakshman. Rama knew them, but Lakshman said: "I do not recognize the bracelets or the ear-rings, but I know the anklets well, for I was not used to lift my eyes above her feet."
Now, says the story, Rama fared with Sugriva to Vali's city, and overcome Vali, and established Sugriva on the throne. Then four months of the rainy season passed away, and when the skies grew clear and the floods diminished, Sugriva sent out his marshals to summon the monkey host. They came from Himalaya and Vindhya and Kailas, from the east and from the west, from far and near, from caves and forests, in hundreds and thousands and millions, and each host was captained by a veteran leader. All the monkeys in the world assembled there, and stood before Sugriva with joined hands. Then Sugriva gave them to Rama for his service, and would place them under his command. But Rama thought it best that Sugriva should issue all commands, since he best understood the ordering of such a host, and was well acquainted with the matter to be accomplished.