Shani (शनि, ), or Shanaishchara (शनैश्चर, ), refers to the divine personification of the planet Saturn in Hinduism, and is one of the nine heavenly objects (Navagraha) in Hindu astrology. Shani is also a male Hindu deity in the Puranas, whose iconography consists of a black figure carrying a sword or danda (sceptre) and sitting on a crow. He is the god of karma, justice, and retribution, and delivers results depending upon one's thoughts, speech, and deeds. Shani is the controller of longevity, misery, sorrow, old age, discipline, restriction, responsibility, delays, ambition, leadership, authority, humility, integrity, and wisdom born of experience. He also signifies spiritual asceticism, penance, discipline, and conscientious work. He is associated with two consorts: Neela, the personification of the gemstone sapphire, and Manda, a gandharva princess.
Shani as a planet appears in various Hindu astronomical texts in Sanskrit, such as the 5th-century Aryabhatiya by Aryabhatta, the 6th-century Romaka by Latadeva and Pancha Siddhantika by Varahamihira, the 7th-century Khandakhadyaka by Brahmagupta and the 8th-century Sisyadhivrddida by Lalla. These texts present Shani as one of the planets and estimate the characteristics of the respective planetary motion. Other texts such as Surya Siddhanta dated to have been complete sometime between the 5th century and 10th century present their chapters on various planets as divine knowledge linked to deities.
The manuscripts of these texts exist in slightly different versions, present Shani's motion in the skies, but vary in their data, suggesting that the text were open and revised over their lives. The texts slightly disagree in their data, in their measurements of Shani's revolutions, apogee, epicycles, nodal longitudes, orbital inclination, and other parameters. For example, both Khandakhadyaka and Surya Siddhanta of Varaha state that Shani completes 146,564 revolutions on its own axis every 4,320,000 earth years, an Epicycle of Apsis as 60 degrees, and had an apogee (aphelia) of 240 degrees in 499 CE; while another manuscript of Soorya Siddhantha revises the revolutions to 146,568, the apogee to 236 degrees and 37 seconds and the Epicycle to about 49 degrees.