So I just read this this morning, I'm not solid on it, but Origen, the ancient Christian heretic/father, depending on your othodoxical(?) standpoint suggests this is similar to how a parent giving the child everything spoils them, the parents actions affect the child's heart.
My verily possibly poor understanding is that by making Pharoah the dude I charge, Origen possits that this hardened his heart. I'm pretty sure Augustine then smashed this idea to pieces.
Found in this book Sin: The Early History of an Idea https://www.amazon.com.au/dp/0691160902/ref=cm_sw_r_apan_i_RGX2J9V9B6DC779ZTPP4