Exodus, Chapter 17, verses 8-13
8 Amalek is overcome by the holding up of Moses' hands2 Timothy, Chapter 3, verses 14-17
10 propoundeth unto him his own example, 16 and commendeth the holy Scriptures2 Timothy, Chapter 4, verses 1-2
1 He exhorteth him to do his duty with all care and diligence3
3:14 From whom - Even from me a teacher approved of God.
3:15 From an infant thou hast known the holy scriptures - Of the Old Testament. These only were extant when Timothy was an infant. Which are able to make thee wise unto salvation, through faith in the Messiah that was to come. How much more are the Old and New Testament together able, in God's hand, to make us more abundantly wise unto salvation! Even such a measure of present salvation as was not known before Jesus was glorified.
3:16 All scripture is inspired of God - The Spirit of God not only once inspired those who wrote it, but continually inspires, supernaturally assists, those that read it with earnest prayer. Hence it is so profitable for doctrine, for instruction of the ignorant, for the reproof or conviction of them that are in error or sin, for the correction or amendment of whatever is amiss, and for instructing or training up the children of God in all righteousness.
3:17 That the man of God - He that is united to and approved of God. May be perfect - Blameless himself, and throughly furnished - By the scripture, either to teach, reprove, correct, or train up others.
4
4:1 I charge thee therefore - This is deduced from the whole preceding chapter. At his appearing and his kingdom - That is, at his appearing in the kingdom of glory.
4:2 Be instant - Insist on, urge these things in season, out of season - That is, continually, at all times and places. It might be translated, with and without opportunity - Not only when a fair occasion is given: even when there is none, one must be made.
18
18:1 He spake a parable to them - This and the following parable warn us against two fatal extremes, with regard to prayer: the former against faintness and weariness, the latter against self confidence.
18:7 And shall not God - The most just Judge, vindicate his own elect - Preserve the Christians from all their adversaries, and inparticular save them out of the general destruction, and avenge them of the Jews? Though he bear long with them - Though he does not immediately put an end, either to the wrongs of the wicked, or the sufferings of good men.
18:8 Yet when the Son of man cometh, will he find faith upon earth - Yet notwithstanding all the instances both of his long sufferingand of his justice, whenever he shall remarkably appear, against their enemies in this age or in after ages, how few true believers will be found upon earth!

17 In this chapter are recorded,
17:8 Then Amalek came and fought with Israel - The Amalekites were the posterity of Esau, who hated Jacob because of the birth - right and blessing. They did not boldly front them as a generous enemy, but without any provocation given, basely fell upon their rear, and smote them that were faint and feeble.
17:9 I will stand on the top of the hill with the rod of God in my land - See how God qualifies his people for, and calls them to various services for the good of his church; Joshua fights, Moses prays, and both minister to Israel. This rod Moses held up, not so much to Israel as to animate them; as to God by way of appeal to him; Is not the battle the Lord's? Is not he able to help, and engaged to help? Witness this rod! Moses was not only a standard - bearer, but an intercessor, pleading with God for success and victory.
17:10 Hur is supposed to have been the husband of Miriam.
17:11 And when Moses held vp his hand in prayer (so the Chaldee explains it) Israel prevailed, but when he let down his hand from prayer, Amalek prevailed - To convince Israel that the hand of Moses (with whom they had just now been chiding) contributed more to their safety than their own hands; the success rises and falls, as Moses lifts up or lets down his hand. The church's cause is ordinarily more or less successful, according as the church's friends are more or less fervent in prayer.
17:13 Though God gave the victory, yet it is said Joshua discomfited Amalek, because Joshua was a type of Christ, and of the same name, and in him it is that we are more than conquerors.