Psalm 105:14

He suffered no man to do them wrong: yea, he reproved kings for their sakes;

Cross-references

Genesis 12:14-17 recounts God afflicting Pharaoh for taking Sarai, directly illustrating God rebuking a king for Abraham.

Genesis 20:1-7 shows God warning Abimelech in a dream about Sarah, another example of rebuking a king for Abraham.

Genesis 12:17 records God afflicting Pharaoh with plagues because of Sarai — the specific rebuke of a king that Psalm 105:14 summarizes.

Genesis 20:3 recounts God rebuking Abimelech in a dream for taking Sarah — another king rebuked for a patriarch, matching the psalm.

Genesis 31:24-29 has God warning Laban in a dream not to harm Jacob, similar to rebuking a ruler for the patriarch.