What shall we say then? Is there unrighteousness with God? God forbid. For he saith to Moses, “I will have mercy on whom I will have mercy, and I will have compassion on whom I will have compassion.” So then it is not of him that willeth, nor of him that runneth, but of God that sheweth mercy. For the scripture saith unto Pharaoh, “Even for this same purpose have I raised thee up, that I might shew my power in thee, and that my name might be declared throughout all the earth.” Therefore hath he mercy on whom he will have mercy, and whom he will he hardeneth. Thou wilt say then unto me, “Why doth he yet find fault? For who hath resisted his will?” Nay but, O man, who art thou that repliest against God? Shall the thing formed say to him that formed it, “Why hast thou made me thus?” Hath not the potter power over the clay, of the same lump to make one vessel unto honour, and another unto dishonour? What if God, willing to shew his wrath, and to make his power known, endured with much longsuffering the vessels of wrath fitted to destruction: And that he might make known the riches of his glory on the vessels of mercy, which he had afore prepared unto glory, Even us, whom he hath called, not of the Jews only, but also of the Gentiles?»
Romans 9:14-24 KJV
https://www.bible.com/1/rom.9.14-24.kjv