On Hanuman's advice, Sugriva hid in Matanga's hermitage (option B) to escape from Vaali. This sage's ashram provided sanctuary to Sugriva during his exile. Bhrigu, Atri, and Kashyapa were other prominent sages but not associated with this specific event.