It is narrated from Huyayy bin Ya'la (may Allah have mercy on him) that he "saw Sayyiduna Ya'la bin Umayyah (may Allah be pleased with him) praying before the sun had risen. It was said to him: 'You are a Companion of the Messenger of Allah (peace and blessings be upon him), and you are praying before the sun has risen!' He said that the Messenger of Allah (peace and blessings be upon him) said: 'Indeed, the sun rises between the two horns of Satan. So if the sun rises while you are occupied in some (religious) work of Allah, that is better than its rising while you are lying heedless.'"
I say: Imam Ahmad bin Hanbal (may Allah have mercy on him) also narrated it through the chain of Abu Asim from Abdullah bin Umayyah bin Abi Uthman, and then mentioned the whole hadith.