fiqhsalatmasbuqqadadivergence
According to the qada view, what the latecomer prayed with the imam is the end of his prayer; after the imam's salam he reconstructs its beginning, for recitation and sittings alike. Ibn Abd al-Barr reports it from Malik through Ashhab and Ibn Abd al-Hakam, and attributes it to Abu Hanifa and Ath-Thawri. In the Maliki school, the mashhur view is the tafsil.