Lord Krishna and Sudama studied together at the ashrama of Rishi Sandipani (also spelled Saandipani) in Ujjain. This is where their famous friendship began. Sandipani was their guru, and Krishna even brought his guru's dead son back from Yamaloka as guru dakshina.