It is known that Lord Rama stayed in vanavas in Karvi for 12 years and then went to Nasik for 6 months where in Sri Lakshman cut off the nose of surpanaka the demon.
With the abuction of Sita Ram and Lakshman came to bagalkot and asked savari(low cast people) about the weare abouts of Sita who in turn asked them to go to pampapur . and from pampapur a little bit further Lord Rama meets Lord Hanuman and Sugreeva
Malvavanth phatiksila Ragunath mandir where in Lord Rama did thapasya for 4 months and is considered sacred land beside which is madhuvana.