I asked Aaiz bin Amr , who was one of the Companions of the Prophet ﷺ and among those who pledged allegiance under the tree, "Can the witr prayer be undone?"He replied, "If you have prayed witr at the beginning of the night, do not pray witr again at its end."
حدثنا محمد بن حاتم بن بزيع حدثنا شاذان عن شعبة
سألت عائذ بن عمرو رضي الله عنه وكان من أصحاب النبي ﷺ من أصحاب الشجرة هل ينقض الوتر قال إذا أوترت من أوله فلا توتر من آخره