It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that a man said: "O Muhammad! O our master and son of our master! And O best of us and son of the best of us!" So the Messenger of Allah (peace and blessings be upon him) said: "Keep to your (usual) speech, and let not the devil lead you astray at all; I am Muhammad bin Abdullah, the servant of Allah and His Messenger. By Allah! I do not like that you raise me above the rank which Allah, the Mighty and Majestic, has given me."
These are the words of al-Hasan bin Musa (may Allah have mercy on him), and the hadith of Affan (may Allah have mercy on him) is similar to it.
Related hadith on this topic