It is narrated from Sayyidah Aishah (may Allah be pleased with her) that she said: "When the Messenger of Allah (peace and blessings be upon him) took up some good habit or practice, he liked to keep it up constantly. So if illness or sleep ever overcame him (peace and blessings be upon him) (and the night prayer was missed), he (peace and blessings be upon him) would pray twelve rak'ahs during the day."
Imam Abu Dawud al-Tayalisi recorded it.