Sahih Muslim, Book 33, Hadith 120 (Muslim 4780)

It has been narrated on the authority of Abdullah b. Zaid who said:

A person came to him and said: Here is Ibn Hanzala who is making people swear allegiance to him. He (, Abdullah) asked: To what effect? He replied: To the effect that they will die for him. 'Abdullah said: I will never swear allegiance to this effect after the Messenger of Allah (ﷺ).