[Machine] About the Prophet ﷺ in the story of the person who prayed incorrectly until the Messenger of Allah ﷺ taught him, he said about it, "Then prostrate until you feel at ease, while still in prostration, for it is valid according to the two authentic narrations."
عَنِ النَّبِيِّ ﷺ فِي قِصَّةِ الدَّاخِلِ الَّذِي أَسَاءَ الصَّلَاةَ حَتَّى عَلَّمَهُ رَسُولُ اللهِ ﷺ قَالَ فِيهِ ثُمَّ اسْجُدْ حَتَّى تَطْمَئِنَّ سَاجِدًا مُخَرَّجٌ فِي الصَّحِيحَيْنِ