Making intention of two rakaats sunnah after Jumuah instead of four
Q: I had to pray 4 rakaahs sunnat after the jamaat prayer of Jumuah, but I mistakenly made the intention of 2 rakaahs sunnah. After starting the prayer, I remembered that I had to pray 4 rakaahs, so I offered 4 rakaahs instead. Will my prayer be valid?