Valmiki

He meditated for fifty thousands of years, and then he wrote Ramayana.