I do not have source but I remember to read that it is very rare scenarios but it is possible that 2 different input can have same hash.
When we compare to the SHA-2 series of hash functions(SHA-256, SHA-384, SHA 512) has strong
collision resistance. so it is hard to find two inputs having the same hash. I think you're talking about
MD5 hash function which is vulnerable for collision attacks and also a hacker can produce two colliding hashes in no time with higher CPU power, but not with the SHA-2 series.
With SHA-256 function, almost all the time we cannot get Hash(A)=Hash(B) if A≠B
<...snip...>
I have created a
thread regarding Hash function which I believed helpful for you

. This
Hash calculator is a very good one for reference with different hash functions.