Zayd bin Khalid reported,

"Tonight I will surely observe the prayer of the Messenger of Allah ﷺ." He said, "So I lay down at his threshold," or "his tent."The Messenger of Allah ﷺ stood and prayed two very long, very long, very long rakahs. Then he prayed two rakahs shorter than the previous two, then two rakahs shorter than those, then two rakahs shorter than those, then two rakahs shorter than those, then two rakahs shorter than those. Then he prayed witr. That made thirteen rakahs in all.

Azami 2747

Sahih

عن زيد بن خالد الجهني أنه قال

لأرمقن الليلة صلاة رسول الله ﷺ قال: فتوسدت عتبته، أو فسطاطه. فقام رسول الله ﷺ فصلى ركعتين طويلتين طويلتين طويلتين، ثم صلى ركعتين، وهما دون اللتين قبلهما، ثم صلى ركعتين وهما دون اللتين قبلهما، ثم صلى ركعتين وهما دون اللتين قبلهما، ثم صلى ركعتين وهما دون اللتين قبلهما، ثم صلى ركعتين وهما دون اللتين قبلهما. ثم أوتر. فتلك ثلاث عشرة ركعة.

الأعظمي 2747صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Minor actions do not invalidate the prayer
Section
Number of the night prayer of the Messenger of Allah ﷺ and that Witr is from one rakat to nine rakats
Numbering
Jami al-Kamil 2747 (2nd edition)
Azami 2747