Psalm 105:22

To bind his princes at his pleasure; and teach his senators wisdom.

Cross-reference

In Genesis 41:40, Pharaoh gives Joseph authority over his house and people — directly matching the psalm's description of binding princes and teaching wisdom.

In Genesis 45:8, Joseph says God made him lord of all Egypt — the same authority that allows him to bind princes and teach wisdom as in the psalm.