All perfect praise be to Allah, The Lord of the worlds. I testify that there is none worthy of worship except Allah and that Muhammad,
, is His slave and Messenger.
First of all, you should know that having doubts about an act of worship after performing it does not affect its validity. Shaykh Ibn ‘Uthaymeen,
, wrote, "Doubting after finishing an act of worship does not have any effect ... no matter how excessive the doubts are." For more benefit, please refer to fatwa 119112.
Assuming that you do not suffer Waswasah (obsessive doubts), then this doubt is of no effect because it occurred after completing the act of worship. However, since you already suffer Waswasah, then you must totally ignore these doubts and give them no attention at all. Verily, getting carried away with Waswasah leads to grave evil.
Allah knows best.