The first testimony affirms Allah’s exclusive divinity, and the second affirms Muhammad as His servant and messenger. The two words ‘abduhu wa-rasuluhu express both servanthood and messengership.
This sequence accords with the well-known tashahhud transmitted from Ibn Mas‘ud.