Ma'qil b. Yasār al-Muzanī reported the Prophet as saying, “If anyone recites Yā’ Sīn (Qur’ān, 36) out of a desire for God's favour, his past sins will be forgiven him; so recite it over those of you who are dying.”
Baihaqī transmitted it in Shu'ab al-īmān.