Although it was obvious that they could not do any harm to anyone by means of this magic without Allah 's permission , yet they learnt that art which could not be profitable even for them but was actually harmful . Moreover , they knew it full well that anyone , who purchased that art , would have no share in the Hereafter .