וַ֭יַּרְא בַּצַּ֣ר לָהֶ֑ם בְּ֝שָׁמְע֗וֹ אֶת־רִנָּתָֽם׃
I wejrzał na niedolę ich, gdy usłyszał ich wołanie.
Rashi on Psalms
But He looked upon their distress On account of prayer.
Rashi on Psalms
when He heard their cries On account of the merit of the Patriarchs.