Ibn 'Umar reported Allah's Messenger (ﷺ) as saying
Let not any one of you intend to observe prayer at the time of the rising of the sun or of the setting sun.