“I heard the Messenger of Allah (ﷺ) say: ‘When you offer the prayer for the deceased, supplicate sincerely for him.’”
Sunan Ibn Majah Book 6, Hadith 65