[Machine] Indeed, there is no reward written for pain, rather the reward is in the action. However, Allah expiates sins with it.
«إِنَّ الْوَجَعَ لَا يُكْتَبُ بِهِ الْأَجْرُ إِنَّمَا الْأَجْرُ فِي الْعَمَلِ وَلَكِنْ يُكَفِّرُ اللهُ بِهِ الْخَطَايَا»