Got ownership registration certificate (ORC) and patta pass book and 1-B

We purchased a agriculture land from inamdars (muslim community) in year 1972 and under cultivation since then by my grand father.. Purchase of land is done in private sale deed in sub register office and also present in revenue records till date. As years gone.. My father got a notice from govt of ap in 1987 stating as per Abolition of inam andrapradesh act 1955, you should be provide evidence and prove stating we are under posession. My father went to subcollector office along with the people who sold the land to us.. Muslim people wrote a affadavit stating that we sold the land in 1972 and since then my father is in possession and owner of land.. After this sub collector as issued and ORC on my father name. We also got pattadar passbooks and ROR, title deed, 1B.. We are under cultivation from 1987 to till date...In 2017, after my father expiry the land is transferred to my mother and got pattadar passbooks on her name. But all of sudden we got shocked with the news that, the land belongs temple i.e Endowments department. All the pahanais from 1957 to 1972 (muslim people) and 1973-2018 we are under possession and pattadars. What should we do now after we being the owner from such a long time.. Where should we go for justice. Revenue and collector people are helpless at our place. Please help me in this reagard