It is narrated from Hazrat Aisha (may Allah be pleased with her) that the Prophet (peace and blessings be upon him) used to pray thirteen rak'ahs at night. Out of these, six rak'ahs were prayed two at a time, and the remaining five were made witr together, and he would end with salam while sitting.