Dragon Ball Z (1989)
S1E9 The Strangest Robot
In a bid to evade a group of ferocious animals, Gohan finds refuge in an ancient cave, where he encounters an elderly Capsule Corp robot. Having spent more than three decades in solitude within the cave, the robot isn't thrilled about the unexpected company!