I've heard in the name of the Baal Shem Tov, that G-d was wondering what to give the Jewish people in order to perfect themselves. The endresult.... mitzvos, all 613 of them.
G-d gave us the Torah and designed the mitzvos, so that we can perfect ourselves and cling to Hashem.
Is this explanation actually attributed to the Baal Shem Tov and if so, where can this idea be found? (Only Baal Shem Tov please)