It is narrated from Sayyiduna Zayd bin Khalid al-Juhani (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "The best testimony is that which the witness gives before he is asked for it."
Hadith Referenceالمعجم الكبير للطبراني / باب الزاي / 5165