Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:30:17

So exalted is Allah when you reach the evening and when you reach the morning.  

So glory be to God — in other words, ˹so˺ glorify God, meaning: perform prayer — when you enter the ˹time of the˺ night, in which there are two prayers, the sunset one (maghrib) and the later night one (‘ishā’), and when you rise in the morning, in which there is the morning prayer (subh).
القرآن:٣٠:١٧

فَسُبْحَانَ اللَّهِ حِينَ تُمْسُونَ وَحِينَ تُصْبِحُونَ  

{فسبحان الله} أي: سبحوا الله بمعنى صلوا {حين تمسون} أي: تدخلون في المساء وفيه صلاتان: المغرب والعشاء {وحين تصبحون} تدخلون في الصباح وفيه صلاة الصبح.