Acceptance of a deed is other than its correctness; an action may be done in accordance with Islamic rules and it is counted as correct but it is not accepted.The correct action which is only acceptable just averts the divine punishment and reprimand but the accepted action not only is rewarded but also is the reason for growth and proximity in addition to averting the punishment.Acceptance of actions are of three conditions:
First: one must be a true believer, that is, to have faith in Allah, the mission of the Prophet and the Resurrection day.
Second: the action which is done shouldn, t be heresy, but must comply with the orders and decrees of religion
Third: one’s intention and motivation must be true and it must attract Allah’s satisfaction not for the sake of attracting and welcoming people, s views.
source : erfan.ir