Vinaya Pitaka
Tradition holds that the Buddha thought out the Abhidhamma immediately after his enlightenment then taught it to the gods some years later. Later, the Buddha repeated it to Sariputta who then transmitted it to his disciples. This tradition is evident in the Parivara, a late text from the Vinaya Pitaka, which mentions in a concluding verse of praise to the Buddha that "this best of creatures, the lion, taught the three pitakas".