"When the (upper) edge of the sun appears (in the morning), don't perform a prayer till the sun appears in full, and when the lower edge of the sun sets, don't perform a prayer till it sets completely. And you should not seek to pray at sunrise or sunset for the sun rises between two sides of the head of the devil (or Satan)."
What the hadith says
Muhammad prohibited prayer at sunrise and sunset on the specific grounds that at those moments the sun passes between the horns of Satan's head — making prayer at those times potentially directed toward a demonic frame rather than toward Allah.
Why this is a problem
Taner Edis, in 'An Illusion of Harmony: Science and Religion in Islam' (Prometheus Books, 2007), identifies this hadith as one of several in Bukhari that depend entirely on a flat-earth cosmological model. On a spherical, rotating Earth, there is no single moment when the sun rises — it is continuously rising at different longitudes around the globe simultaneously. If Satan's head exists at a fixed location through which the sun passes at sunrise, that spatial relationship cannot hold simultaneously for all observers on a sphere. The ritual timing of Islamic prayer is regulated by a geometric relationship between the sun and demonic anatomy that is physically incoherent under any model more accurate than a flat disk with a local sun.
The polemical website WikiIslam further notes that the horned-demon imagery is directly inherited from bull-horned storm and sun gods attested extensively in Mesopotamian and Canaanite iconography — the same cultural milieu from which pre-Islamic Arabian religion derived much of its visual and cosmological vocabulary. The hadith preserves this imagery as a live cosmological claim, not as acknowledged folk inheritance.
The Muslim response
Classical tafsir scholars — al-Tabari, Ibn Kathir — explained the Satan's-horns imagery as describing the sun rising in a position associated with Satanic influence to explain why pagan Arabs worshipped the sun at rising and setting. The prohibition targets sun-worship, not astronomy. The hadith provides a spiritual explanation for an existing pagan practice: praying at sunrise looks like sun-worship, and avoiding it is spiritually protective. The cosmological language is symbolic framing for a religious distinction, not a scientific claim about the sun's physical path.
Why it fails
Edis documents that classical tafsir — al-Tabari, Ibn Kathir — read the Satan's-horns language as referring to a real metaphysical state of the sun at rising and setting, not as symbolic framing for a pagan-avoidance principle. The hadith states a causal reason: avoid prayer at these times because the sun is between Satan's horns at these times. The hadith does not merely state the rule; it states the cosmological event as the causal reason for the rule. If that reason is reduced to symbolism, the hadith asserts a false causal explanation; if taken at face value, it asserts a false cosmology. The stated cosmological reason is therefore not incidental packaging; it is the mechanism. That mechanism only functions in a pre-Copernican model, and a revelation from an omniscient God should not produce cosmological premises that only hold in the mistaken worldview of its first audience.