وَأَمَرَهُمْ بِطَاعَتِهِ وَنَهَاهُمْ عَنْ مَعْصِيَتِهِ
He commanded them to obey Him and forbade them from disobeying Him.
A command (amr) directs a person toward an act or statement, while a prohibition (nahy) directs one away from an act or statement.
The servant who receives these commands and prohibitions remains responsible for responding to them.