It is narrated from Abdullah al-Sunabihi (may Allah have mercy on him) that the Messenger of Allah (peace and blessings be upon him) said: "Indeed, when the sun rises, the horn of Satan is with it; then when it rises high (above the horizon), it separates from it; then when it reaches its zenith (the exact middle of the sky), it joins it; then when it begins to decline, it separates from it; then when it draws near to setting, it joins it (again); and when it has completely set, it separates from it." Therefore the Messenger of Allah (peace and blessings be upon him) forbade praying at these times.
Hadith Referenceمسند أبي يعلى الموصلي / مسند عبد الله الصنابحي / 1451
Hadith Takhrij«قال سعيد بن محمد السناري: صحيح: دون قوله: (فإذا ارتفعت فارقها، فإذا استوت قارنها)» «أخرجه سنن النسائي برقم: 559، وأخرجه مسند أحمد برقم: 18584، 18591، وأخرجه موطأ مالك برقم: 510، وأخرجه مصنف عبد الرزاق برقم: 3950، وأخرجه صحيح ابن خزيمة برقم: 1274، وأخرجه السنن الكبرى للنسائي برقم: 1675، وأخرجه معرفة السنن والآثار برقم: 5138، مسند ابویعلیٰ ترقیم الاثری: 1447»