The Torah and the Kindness Are Yours
Dovid came before the Divine Presence, stretched himself out full length on the ground, and said, "My Father in Heaven, the Torah that I have studied before You is Yours, for the Torah is Yours, and the acts of kindness that I have done before You are Yours, for all the wealth is Yours. Yet in reward for the little bit of Torah I have learned before You, You gave me possession of This World, the Messianic era, and the World to Come."
Source: Tanna d'Bei Eliyahu Rabbah 18