Sayyiduna Usama bin Zaid (may Allah be pleased with him) reports that the Messenger of Allah (peace and blessings be upon him) said: "If someone does a favor to a person, and he says: «جزاک اللہ خیرا», then he has fully expressed his gratitude."
Related hadith on this topic