Peace be upon you. If someone intends to fast as a form of atonement for the deceased on a day that is recommended for fasting, such as the Day of Ghadir, they will also receive the reward for that day, God willing. According to Ayatollah Sistani, if the intention is to fulfill the atonement and to gain the reward of fasting on that recommended day, they will indeed receive both rewards. Similarly, Ayatollah Khamenei states that if you intend to fast for both atonement and as a recommended fast, you will be rewarded for both, and it will count as atonement as well. May you be successful in all good deeds.