This episode is a narration of the 37th Sutta of the Middle Discourses of the Buddha, The Cūḷataṇhāsaṅkhaya Sutta, which translates as “the Shorter Discourse on the Ending of Craving”. In this discourse one of the Buddha’s chief disciples, Venerable Maha Moggallāna visits the heaven of Sakka, the lord of gods, to see whether he really understands what the Buddha is teaching.