"Do not time your prayer to coincide with the rising of the sun or its setting, for Satan's two horns rise with the rising of the sun and set with its setting." And he used to strike people for praying at those times.
و حدثني عن مالك عن عبد الله بن دينار عن عبد الله بن عمر أن
لا تحروا بصلاتكم طلوع الشمس ولا غروبها فإن الشيطان يطلع قرناه مع طلوع الشمس ويغربان مع غروبها وكان يضرب الناس على تلك الصلاة