Madhupayasa
Madhupayasa is the Pali term for honey-infused kheer or payasa, a rice pudding dish dating back to Ancient India.

The dish is served in Thailand, where it arrived from India. In Thailand, people used to make small sticky rice balls for worship. The flavor and ingredients of these influenced Thai versions of madhupayasa, which is now used in many Buddhist ceremonies.

Origin story 
Sujata, a daughter of wealthy family, prayed to a Banyan Tree for a baby boy to be her family's heir. After her prayer was granted, she gave thanks by returning to the tree with an offering of madhupayasa. Lord Buddha, then in his ascetic period, was meditating under the tree and fainting from starvation. She gave him the food and he recovered, beginning to focus on moderation rather than extreme austerities. This story may have originated before the Buddhist Era (566 BCE) and become attached to the story of the Buddha.

Use in Thai Buddhism 
Madhupayasa use in Thailand started around the period of the Ayutthaya Kingdom (1351 – 1767 CE), and in the early Rattanakosin period (1782 CE). The ingredients used have changed many times. There are possibly more than 60 types of the pudding, made with different ingredients such as fruits, taro, potato, etc.

A Phra-Song (Thai Buddhist monk) must make the ceremonial offering.  After the end of the ceremony, the puddings are given to monks and to other temples nearby, or can be eaten for both luck and fortune.