Yahya related to me from Malik from Nafi from Abdullah ibn Umar that the Messenger of Allah, may Allah bless him and grant him peace, said, "You should not intend to pray either at sunrise or sunset".
The Prophet ﷺ also taught us the importance of being mindful of when we are praying so as not to miss any prayers due to distractions such as the rising or setting sun. This hadith reminds us of the importance of being mindful when it comes to prayer and how it can help us stay focused on worshipping Allah SWT in a respectful manner.