Answer: The source for this is the Talmud - Niddah 30b. Here is the original text:
למדין אותו כל התורה כולה וכו' וכיון שבא לאויר העולם בא מלאך וסטרו על פיו ומשכחו כל התורה כולהIn English translation (Soncino):
It is also taught all the Torah from beginning to end ... As soon as it, sees the light an angel approaches, slaps it on its mouth and causes it to forget all the Torah completelyThis is also one of the reasons for the celebration of Shalom Zachor - a party which is held Friday night following the birth of a boy (Taz, Yoreh Deah 265:13).
(See also Aish, AskMoses and Kollel Iyun HaDaf)