It is narrated from Hazrat Umm Salamah (may Allah be pleased with her) that previously the Prophet (peace and blessings be upon him) used to perform Witr with thirteen rak'ahs, but when the Prophet (peace and blessings be upon him) grew older and became weak, he started performing Witr with seven rak'ahs.