Prime Minister Narendra Modi will visit Ayodhya on August 5 to attend the bhoomi pujan ceremony of Ram Mandir, confirmed Uttar Pradesh Chief Minister Yogi Adityanath on Saturday.