Sandhyavandhanam is a ritual that all Dvijas(Twice Born) are required to perform three times a day. This chapter of the Vishnu Purana
http://www.sacred-texts.com/hin/vp/vp066.htm
https://onlybrahmin.blogspot.com/search/label/Sandhyavandanam
The night is called Ushá, and the day is denominated Vyusht́a, and the interval between them is called Sandhya. On the occurrence of the awful Sandhya, the terrific fiends termed Mandehas attempt to devour the sun; for Brahmá denounced this curse upon them, that, without the power to perish, they should die every day (and revive by night), and therefore a fierce contest occurs daily between them and the sun. At this season pious Brahmans scatter water, purified by the mystical Omkára, and consecrated by the Gáyatri; and by this water, as by a thunderbolt, the foul fiends are consumed. When the first oblation is offered with solemn invocations in the morning rite, the thousand-rayed deity shines forth with unclouded splendour. Omkára is Vishńu the mighty, the substance of the three Vedas, the lord of speech; and by its enunciation those Rákshasas are destroyed. The sun is a principal part of Vishńu, and light is his immutable essence, the active manifestation of which is excited by the mystic syllable Om. Light effused by the utterance of Omkára becomes radiant, and burns up entirely the Rákshasas called Mandehas. The performance of the Sandhya (the morning) sacrifice must never therefore be delayed, for he who neglects it is guilty of the murder of the sun.
https://freeglobaluniversity.blogspot.com/search/label/Ancient