Numbers 21:4-9 CJB

4 Then they traveled from Mount Hor on the road toward the Sea of Suf in order to go around the land of Edom; but the people's tempers grew short because of the detour.
5 The people spoke against God and against Moshe: "Why did you bring us up out of Egypt? To die in the desert? There's no real food, there's no water, and we're sick of this miserable stuff we're eating!"
6 In response, ADONAI sent poisonous snakes among the people; they bit the people, and many of Isra'el's people died.
7 The people came to Moshe and said, "We sinned by speaking against ADONAI and against you. Pray to ADONAI that he rid us of these snakes." Moshe prayed for the people,
8 and ADONAI answered Moshe: "Make a poisonous snake and put it on a pole. When anyone who has been bitten sees it, he will live."
9 Moshe made a bronze snake and put it on the pole; if a snake had bitten someone, then, when he looked toward the bronze snake, he stayed alive.