Sahih al-Bukhari Book 9, Hadith 59
Allah's Messenger (ﷺ) forbade two kinds of sales, two kinds of dresses, and two prayers. He forbade offering
prayers after the Fajr prayer till the rising of the sun and after the `Asr prayer till its setting. He also
forbade "Ishtimal-Assama " and "al-Ihtiba" in one garment in such a way that one's private parts
are exposed towards the sky. He also forbade the sales called "Munabadha" and "Mulamasa." (See
Hadith No. 354 and 355 Vol. 3).
Ibn `Umar said, "Allah's Messenger (ﷺ) said, 'Do not pray at the time of sunrise and at the time of sunset.' " Ibn `Umar said, "Allah's Messenger (ﷺ) said, 'If the edge of the sun appears (above the horizon) delay the prayer till it becomes high, and if the edge of the sun disappears, delay the prayer till it sets (disappears completely).' "
Allah's Messenger (ﷺ) said, "None of you should try to pray at sunrise or sunset."