Confirmation Bias is the tendency to search for, interpret, focus on and remember information in a way that confirms one's preconceptions.
According to Psychology Today, Confirmation bias occurs from the direct influence of desire on beliefs. When people would like a certain idea/concept to be true, they end up believing it to be true. They are motivated by wishful thinking. This error leads the individual to stop gathering information when the evidence gathered so far confirms the views (prejudices) one would like to be true.