וַתֹּ֤אמֶר רָחֵל֙ דָּנַ֣נִּי אֱלֹהִ֔ים וְגַם֙ שָׁמַ֣ע בְּקֹלִ֔י וַיִּתֶּן־לִ֖י בֵּ֑ן עַל־כֵּ֛ן קָרְאָ֥ה שְׁמ֖וֹ דָּֽן׃
און רחל האָט געזאָגט: גאָט האָט זיך פֿאַר מיר אָנגענומען, און האָט אױך מײַן קָול צוגעהערט, און מיר געגעבן אַ זון; דרום האָט זי גערופֿן זײַן נאָמען דָן.
Rashi
דנני אלהים GOD HATH PRONOUNCED JUDGMENT UPON ME — He judged me and found me guilty; he judged me again and found me guiltless (Genesis Rabbah 71:7).
Radak
ותאמר...דנני אלוקים, He compared my legal status with that of my sister and found me also as deserving to have children, just as she is deserving. Seeing she spoke about the legal aspect of G’d’s judgment, as opposed to the favours granted by G’d’s attribute of Mercy, i.e. ה', she used His attribute of Justice when referring to Him, i.e. אלוקים.