Chief Justice of India DY Chandrachud said he had prayed to God for a solution to the Ram Janmabhoomi-Babri Masjid dispute.