Hitting children

Q: I wanted to know that in which case hitting you own child or ustaad hitting a student becomes permissible? Lets say an ustaad has a student and if that student misbehaves or does an action which is total disrespect or doesn't follow ustaads instructions despite that ustaad keeps advising him apprehending and admonishing him (ustaad knows he has won the child's heart already and ustaad knows if he hits the student then the student will take that hiding in a positive way he is a student that wont have an aversion for deen after he gives it to him) he doesn't come right and then the ustaad feels the only solution in his case will be hitting him with justice so now will hitting him be allowed and permissible?

False allegations and accusations levelled against the Ulama of Deoband

Q: Barelwis say that deobandi ulama are kafir due to the statements mentioned below in their books. Please explain. I am very worried because I follow the Deobandi ulama.

1- Rasheed ahmed gangohi rehmatullah alleh neh apni kitab fataawa rashidia Mein likha hai.. "Allah tallah jhoot bol sakta hai" (nauz billah) fatawa Rashidiya part 1 pg 20

2- Ashraf ali thanvi rehmatullah neh apni kitab hafizul eiman mein likhahai Keh nabi sallah hoo alleh wasalam ka ilm aisa hai jaisey bachoon pagloo aur Janwaroo ko bhi hota hai (hifzul eiman page 8 ) nauz billah

3- Qasim nanthovi rehmatullah alleh neh apni kitab tehzeer ulnaas mein likha Hai agar koi nabi aajaey tau khatum nabuwat par koi faraq nahin parey ga.. Tehzeer naas pg 24 nauzbillah

4- Khalil ahmed ambbithwi neh apni kitab barheen qatiya mein likhta hai nabi Kareeh sallah hoo alleh wasallam sah zada ilm shitan ko hai ... Bahreen Qaatiya pg nbr 51-52 nauz billah