First sitting: after the second rakah in a three- or four-rakah prayer; sitting and tashahhud are wajib, followed by standing.
Final sitting: after the prayer’s last prostration; the sitting itself is fard, reciting tashahhud is wajib, and salawat and supplication are sunnah.
Their form is similar in this description, but their ranks and subsequent invocations differ.