It was narrated from Ibn 'Umar that:
the Messenger of Allah forbade selling loyalty or giving it away. (Shah)