2 Maccabees 12:44-45
For if he were not expecting the fallen to rise again, it would have been superfluous and foolish to pray for the dead. But if he did this with a view to the splendid reward that awaits those who had gone to rest in godliness, it was a holy and pious thought.