The World Federation One Stop Fiqh

Ruling 1243

If between the salām of the prayer and making up the sajdah a person does something that makes it obligatory for him to perform sajdatā al‐sahw – for example, he inadvertently speaks – then based on obligatory precaution he must first make up the sajdah and then perform sajdatā al‐sahw.