I intended to pray maghrib namaz and realised that I had recited 4 rakahs while praying. I realised the sequence should not be switched. Then, I prayed both maghrib and isha separately.
For the first prayer, can it count as a qaza Isha from earlier in my life?