وَمَآ أُمِرُوٓا۟ إِلَّا لِيَعْبُدُوا۟ ٱللَّهَ مُخْلِصِينَ لَهُ ٱلدِّينَ حُنَفَآءَ وَيُقِيمُوا۟ ٱلصَّلَوٰةَ وَيُؤْتُوا۟ ٱلزَّكَوٰةَ ۚ وَذَٰلِكَ دِينُ ٱلْقَيِّمَةِ
Wa maa umiroo il-la liy'abu dul laaha mukhliseena lahud-deena huna faa-a wa yuqeemus salaahta wa yu-tuz zakaata; wa zaalika deenul qaiyimah
Yet they were commanded only to worship God, devoting their way of life to him alone, upright in faith, and to establish prayer and give the purifying alms — that is the upright way.
Ḥunafāʾ carries the sense of turning: the ḥanīf is one who leans away from everything else toward the one God, and it is the word the Qur'an uses of Ibrahim. Mukhliṣīn draws on the idea of something unmixed, so the devotion asked for is devotion with nothing else stirred into it. The verse before describes people dividing after clarity reached them, and the whole command is set out here in three items.