A video showing a boy being tied to a tree over failure to recite Quran properly has gone viral.