Difference between Shari’ah, Fiqh and Usul Al-Fiqh
Question

What is the difference between fiqh and Shari’ah and what is usul ul fiqh?
Praise be to Allah.What is Shari`ah?
In linguistic terms, Shari`ah refers to a water source, which is the source to which people who want to drink come, so they drink from it and fill their buckets, and perhaps bring their animals to drink from it as well.
The Arabs do not call a water source Shari`ah unless the water is flowing without interruption, and is visible and can be seen. (Lisan al-‘Arab (8/175)
In Shar‘i terminology, Shari`ah refers to the entire religion (Islam), which Allah has chosen for His slaves to bring them forth thereby from the depths of darkness into the light. It is what He has prescribed for them and what He has explained to them of commands and prohibitions, halal and haram.
Whoever follows the Shari`ah of Allah, regarding as permissible (halal) that which He has permitted and regarding as forbidden (haram) that which He has prohibited, will triumph.
Whoever goes against the Shari`ah (laws) of Allah has exposed himself to divine vengeance, wrath and punishment.
Allah, may He be exalted, says (interpretation of the meaning):
“Then We put you, [O Muhammad], on an ordained way [Shari`ah] concerning the matter [of religion]; so follow it and do not follow the inclinations of those who do not know.” [al-Jathiyah 45:18]
What does Fiqh mean?
In linguistic terms, fiqh means understanding. It may be said that so-and-so has been given fiqh fi’d-din, meaning understanding of the religion. Another example is the du‘a of the Prophet (blessings and peace of Allah be upon him) for Ibn 'Abbas: “Allahumma faqqihhu fi’d-din (O Allah, give him understanding of the religion).” (Narrated by al-Bukhari (143) and Muslim (2477)   (Tahdhib al-Lughah (5/263)
In Shar‘i terminology, fiqh refers to knowledge of the practical, minor Shar‘i rulings which are derived from detailed evidence and proof. Al-Mawsu‘ah al-Fiqhiyyah (1/13)
Ibn Hazm (may Allah have mercy on him) said:
“The definition of fiqh is: knowledge of the rulings of Shari`ah as derived from the Quran and the words of the one who was sent with it (the Prophet (blessings and peace of Allah be upon him)), for these rulings can only be taken from him.
What is implied by this definition is: knowledge of the rulings of the Quran, and what abrogates and what is abrogated of it (an-nasikh wa’l-mansukh); and knowledge of the rulings in the hadiths of the Messenger of Allah (blessings and peace of Allah be upon him), what abrogates and what is abrogated of it, and what is soundly narrated of it and what is not; and knowledge of the matters concerning which there was consensus among the scholars and what they differed about; and knowledge of how to refer differences of opinion to the Quran and Sunnah of the Messenger (blessings and peace of Allah be upon him). This is what is meant by having knowledge of the rulings of Shari`ah.” (Al-Ihkam fi Usul al-Ahkam (5/127)
Ibn Jibrin (may Allah have mercy on him) said:
“Fiqh is understanding of the texts, Quranic verses and hadiths, and knowing how to derive rulings from them.” (Sharh Akhsar al-Mukhtasarat (1/2)
What is Usul al-Fiqh?
The word asl (pl. usul) refers to the origin of a thing and what it is based on. Hence the father is the origin of the child, and the river is the origin of the channel. (Al-Misbah al-Munir (1/16)
Usul al-Fiqh is knowledge of Shar‘i evidence and the way in which that evidence is interpreted in order to reach a ruling, in general terms or in detail. (Sharh Mukhtasar ar-Rawdah (1/106)
Ibn ‘Uthaymin (may Allah have mercy on him) said:
“Usul al-Fiqh may be defined in two ways:

Firstly, on the basis of the two words that make up the phrase, namely the word usul and the word fiqh.

Usul is the plural of asl, which is the basis on which something else is built, such as the foundation of a wall (asl al-jidar), or the trunk of a tree (asl ash-shajarah) from which the branches stem. Allah, may He be exalted, says (interpretation of the meaning):
“Have you not considered how Allah presents an example, [making] a good word like a good tree, whose root [asl] is firmly fixed and its branches [high] in the sky?” [Ibrahim 14:24].
In linguistic terms, fiqh means understanding; in Shar‘i terminology it refers to knowledge of the practical Shar‘i rulings, with detailed evidence.
Knowledge may be definitive or speculative, because Shar‘i rulings may be either definitive (yaqini) or speculative (zanni), as is the case in many issues of fiqh.
What we mean by the Shar‘i rulings (conclusions) is the rulings that are learned from the Shar‘i texts, such as the obligations and prohibitions. That excludes rulings (conclusions) derived by means of reasoning, such as knowing that the whole is greater than its parts, or regular rulings (conclusions), such as knowing that dew will come down on a winter’s night if the sky is clear.
What we mean by practical is that which does not have to do with beliefs, such as prayer and zakah. That excludes anything that has to do with beliefs (‘aqidah), such as the Oneness of Allah (Tawhid) and knowledge of the divine names and attributes. Such topics are not called fiqh in Shar‘i terminology.
What we mean by detailed evidence is evidence of fiqh that has to do with detailed issues of fiqh. This excludes Usul al-Fiqh, because discussing issues of Usul al-Fiqh is done on the basis of the general evidence of fiqh.

Secondly, on the basis of the phrase (the two words together, Usul al-Fiqh) that forms the name of this branch of knowledge, it is defined as the branch of knowledge that deals with the general evidence of fiqh and how to make use of it, and the situation of the one who engages in this process (which is called ijtihad).

What we mean by general is the general principle, such as when the scholars said that a command means that something is obligatory, a prohibition means that something is haram, and the soundness of a report means that it has authority. This excludes detailed evidence, which is not discussed within the framework of Usul al-Fiqh except by way of explaining a general rule.
What we mean by how to benefit from it is knowing how to derive rulings from the evidence by studying what the words of the text mean, and whether the meaning is general or specific, applicable with no restrictions or subject to some restrictions, what abrogates and what is abrogated, and so on. This is done by understanding all of the evidence of fiqh from which rulings are derived.
What we mean by the situation of the one who engages in this process is trying to find out his situation (and whether he is qualified), because he is the one who is engaging in this process (ijtihad), as he himself derives rulings through his efforts based on the evidence, as he has reached the level of ijtihad (having the ability to work out rulings based on the evidence). Knowing the definition of the mujtahid, the conditions and rulings on ijtihad, and so on, are matters that are discussed in the field of Usul al-Fiqh.
The benefit of Usul al-Fiqh is that it enables a person to attain the ability to derive Shar‘i rulings from the evidence by means of a sound process.
The first one to write about Usul al-Fiqh as an independent branch of knowledge was Imam ash-Shafi‘i, Muhammad ibn Idris (may Allah have mercy on him); then he was followed in that by  scholars who wrote various books on this topic. End quote." (Al-Usul fi ‘Ilm al-Usul (p. 7-9)  
And Allah knows best.