BUt according to hadith, You should teach your child to pray when he is 7. When he is 10, if he doesn't pray you should beat him or you will be responsible his sins (of not praying).
Abu Dawood (459) and Ahmad (6650) narrated from 'Amr ibn Shu’ayb from his father that his grandfather said: The...