Sunan an-Nasa'i #1727
The Book of Qiyam Al-Lail (The Night Prayer) and Voluntary Prayers During the Day 20:130
It was narrated that Umm Salamah said:
"The Messenger of Allah (ﷺ) used to pray witr with thirteen rak'ahs, but when he grew older and weaker he prayed witr with nine."