Muwatta Imam Malik Book of The Qur'an, Hadith 45
Yahya related to me from Malik from Hisham ibn Urwa that his father said that the Messenger of Allah ﷺ used to say, "Delay the prayer when the edge of the sun appears until it is completely in view, and delay the prayer when the edge of the sun is disappearing until it has completely disappeared."
وَحَدَّثَنِي عَنْ مَالِكٍ، عَنْ هِشَامِ بْنِ عُرْوَةَ، عَنْ أَبِيهِ، أَنَّهُ قَالَ كَانَ رَسُولُ اللَّهِ ﷺ يَقُولُ " إِذَا بَدَا حَاجِبُ الشَّمْسِ فَأَخِّرُوا الصَّلاَةَ حَتَّى تَبْرُزَ وَإِذَا غَابَ حَاجِبُ الشَّمْسِ فَأَخِّرُوا الصَّلاَةَ حَتَّى تَغِيبَ " .