After completing the first two of a four-rakah nafl with sitting, the last two become invalid: Hanafi-Muhammad ruling?

Voluntary Prayers: Regular Sunnahs, Nawafil and Juristic Differences