Given that the polynomial $P(x) = x^5 - x^2 + 1$ has $5$ roots $r_1, r_2, r_3, r_4, r_5$. Find the value of the product $Q(r_1)Q(r_2)Q(r_3)Q(r_4)Q(r_5)$, where $Q(x) = x^2 + 1$.
1. **Identify the roots and the polynomial:**
   Given the polynomial \( P(x) = x^5 - x^2 + 1 \) with roots \( r_1, r_2, r_3, r_4, r_5 \), we need to find the value of the product \( Q(r_1)Q(r_2)Q(r_3)Q(r_4)Q(r_5) \) where \( Q(x) = x^2 + 1 \).

2. **Express the product in terms of the roots:**
   We need to evaluate:
   \[
   \prod_{i=1}^{5} Q(r_i) = \prod_{i=1}^{5} (r_i^2 + 1)
   \]

3. **Simplify the product:**
   Notice that:
   \[
   \prod_{i=1}^{5} (r_i^2 + 1) = \prod_{i=1}^{5} Q(r_i)
   \]
   Since \( Q(x) = x^2 + 1 \), we can rewrite the product as:
   \[
   \prod_{i=1}^{5} (r_i^2 + 1)
   \]

4. **Evaluate \( P(i) \) and \( P(-i) \):**
   Plugging \( x = i \) and \( x = -i \) into \( P(x) \):
   \[
   P(i) = i^5 - i^2 + 1 = i - (-1) + 1 = i + 2
   \]
   \[
   P(-i) = (-i)^5 - (-i)^2 + 1 = -i - (-1) + 1 = -i + 2
   \]

5. **Multiply \( P(i) \) and \( P(-i) \):**
   \[
   P(i) \cdot P(-i) = (i + 2)(-i + 2)
   \]
   Simplify the product:
   \[
   (i + 2)(-i + 2) = (i)(-i) + 2(-i) + 2(i) + 2^2 = -i^2 - 2i + 2i + 4 = 1 + 4 = 5
   \]

6. **Conclusion:**
   Therefore, the value of the product \( Q(r_1)Q(r_2)Q(r_3)Q(r_4)Q(r_5) \) is:
   \[
   \boxed{5}
   \]