«كان إذا سمع المؤذن يتشهد قال: وأنا وأنا»
It was the practice of the Prophet (peace and blessings be upon him):
"When he (peace and blessings be upon him) heard the mu'adhdhin pronouncing the testimony of faith, he would say: And I too, I too bear witness."