Peace be upon you. According to Grand Ayatollah Khamenei (may Allah protect him): If someone makes a mistake in recitation or in the supplications of prayer, for example, if they read the word 'يولَد' with a Kasra on the letter 'ل', if they are ignorant and negligent, their prayer is invalid as a precaution. However, if they are ignorant but believe that what they are reciting is correct, then their prayer is valid. According to Grand Ayatollah Sistani (may Allah protect him): If someone believes a word is pronounced in a specific grammatical form and prays in that manner, then if it is later revealed that they were mistaken, their prayer is valid, although it is recommended to repeat it as a precaution. May you be successful in all good.