Khema (Pali: Khemā; Sanskrit: Kṣemā) was a Buddhist bhikkhuni, or nun, who was one of the top female disciples of the Buddha. She is considered the first of the Buddha's two chief female disciples, along with Uppalavanna. Khema was born into the royal family of the ancient Kingdom of Madra, and was the wife of King Bimbisara of the ancient Indian kingdom of Magadha. Khema was convinced to visit the Buddha by her husband, who hired poets to sing about the beauty of the monastery he was staying at to her. She attained enlightenment as a laywoman while listening to one of the Buddha's sermons, considered a rare feat in Buddhist texts. Following her attainment, Khema entered the monastic life under the Buddha as a bhikkhuni. According to Buddhist tradition, the Buddha declared her his female disciple foremost in wisdom. Her male counterpart was Sariputta. In Buddhist belief, when a fully enlightened Buddha appears in the world, he always has a set of chief disciples. For the current Buddha, Gautama, his chief male disciples were Sariputta and Moggallana, while his chief female disciples were Khema and Uppalavanna. According to Theravada commentaries, in a previous life Khema was born a woman in the time of Padumattara Buddha and encountered Padumattara Buddha's chief male disciple foremost in wisdom. The woman then makes an offering to the monk and makes a resolution to have wisdom like his under a future Buddha. Ānandajoti Bhikkhu notes that this commentary story stands out compared to stories of other nuns because she makes the wish after seeing a chief male disciple rather than a chief female disciple. However, in the Apadāna texts the woman is described as having made the resolution after seeing Padumattara Buddha appoint a nun his chief female disciple. This wish came true in the time of Gautama Buddha, when she was reborn as Khema. According to Buddhist tradition, Khema was born in the city of Sagala as the daughter of the king of the Madra Kingdom. Her name means "security" and is sometimes used as a synonym for Nirvana.