A:
What they told you is not true. Sujud-ul-Sahw is obligatory when the Imam or anyone else forgets to perform any obligatory action or performs a prohibited one, because the Messenger (peace be upon him) used to do so and ordered us to perform it.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.