Sayyiduna Anas (may Allah be pleased with him) narrates that the eyes of the Messenger of Allah (peace and blessings of Allah be upon him) would sleep, but his heart would remain awake.
It is narrated from Sayyiduna Abu Hurairah (may Allah be pleased with him) that the Noble Prophet (peace and blessings of Allah be upon him) said: "My eyes sleep but my heart does not sleep."