I asked Ubai bin Ka`b regarding the two Muwwidhat (Surats of taking refuge with Allah). He said, “I asked the Prophet (ﷺ) about them, He said, ‘These two Surats have been recited to me and I have recited them (and are present in the Qur’an).’ So, we say as Allah’s Messenger (ﷺ) said (i.e., they are part of the Qur’an.”
I asked Ubai bin Ka`b, “O Abu AlMundhir! Your brother, Ibn Mas`ud said so-and-so (i.e., the two Mu’awwidh-at do not belong to the Qur’an).” Ubai said, “I asked Allah’s Messenger (ﷺ) about them, and he said, ‘They have been revealed to me, and I have recited them (as a part of the Qur’an),” So Ubai added, “So we say as Allah’s Messenger (ﷺ) has said.”