They're both different aspects of Islam: 1) Huqooq ullah (Rights of Allah) 2) Huqooq ul-'Ibaad (Rights of Humans) and Islam stresses on the importance of both equally.