His thuhur prayer is not accepted as he was kafir at the time. As for the rest of his good deeds, Allah will restore them back if his repentance was authentic and real.

If someone commits kufr eg mokxing the hadith then offers duhr prayer and then repents to Allah for mocking the hadith will all his good deeds be written again for him and will his prayer be accepted since he prayed and then repented to Allah?

Prayer |