It was narrated from ‘Abdullah As-Sunabihi that the Messenger of Allah (ﷺ) said: “The sun rises and with it the horn of the Shaitan, then when it is fully risen, he goes away. Then when it approaches the meridian he comes near to it, and when it has passed the zenith he goes away. Then when it is close to setting, he comes near to it, then when it has set, he goes away.” And the Messenger of Allah (ﷺ) forbade praying at those times.
Hadith In Arabic Text :
أخبرنا قتيبة، عن مالك، عن زيد بن أسلم، عن عطاء بن يسار، عن عبد الله الصنابحي، أن رسول الله صلى الله عليه وسلم قال ” الشمس تطلع ومعها قرن الشيطان فإذا ارتفعت فارقها فإذا استوت قارنها فإذا زالت فارقها فإذا دنت للغروب قارنها فإذا غربت فارقها ” . ونهى رسول الله صلى الله عليه وسلم عن الصلاة في تلك الساعات .
Chapter : The Book of the Times (of Prayer) – كتاب المواقيت