It is narrated from Sayyiduna Ali (may Allah be pleased with him) that he said: "The Messenger of Allah (peace and blessings be upon him) used to pray witr at the beginning of the night, in its middle and in its last part; then his (peace and blessings be upon him) witr became fixed and settled in its last part."
Imam Ahmad (may Allah have mercy on him) narrated it through Muhammad bin Fudayl.
Related hadith on this topic