Source: שבת י: (Shabbos 10b) · Category: Rules of Life

The Gemara in שבת י: (Shabbos 10b) says that when someone gives a gift to his friend, he must inform him of it, as the pasuk says “לדעת כי אני ה׳ מקדשכם” (“to know that I am Hashem Who sanctifies you,” Shemos 31:13).

The Gemara then asks from Moshe, who got his radiant face, “ומשה לא ידע כי קרן עור פניו” (“and Moshe did not know that the skin of his face shone,” Shemos 34:29), but Hashem didn’t tell him. It answers that Rav Chama is talking about a gift that is likely to become revealed, so you don’t need to tell the recipient. But where the gift is not likely to become revealed, you should let them know about it. The reward of Shabbos wasn’t likely to become revealed, so the Bnei Yisroel had to be informed about it.

Shabbos 10b

See also: One who gives food to a child must let the parents know (the same Gemara: how to let a child’s parents know about a gift of food)