According to legend, a wealthy merchant from Kannauj was transporting a massive stone idol of Lord Hanuman. Upon reaching the Sangam in Prayagraj, a divine dream instructed him to leave the idol at this sacred confluence. Over time, the idol became a part of the riverbed, leading to its unique reclining position in the temple.