The reward of deeds depends upon the intentions and every person will get the reward according to what he has intended. Bukhari