Ref. No. 1350/42-755
In the name of Allah the most Gracious the most Merciful
The answer to your question is as follows:
The aforementioned saying was not found in authentic books. Such sayings are propagated to inculcate the teacher’s respect into the mind of children. But it has no reality at all.
And Allah knows best
Darul Ifta
Darul Uloom Waqf Deoband