أحسن الله اليكم The niyyah is the knowledge one has in his heart as sheikh shuway’ir said. If I do something for someone (as an act of worship) but I didn’t specify my intention prior, am I still rewarded the due reward for helping someone?

Ustadh AbdulAziz al-Haqqan
You get rewarded in sha'a Allah as u mentioned it has crossed ur mind. And always have good intentions.