As per wiki.
By 1998, New Line Cinema had spent $1.5 million developing a film version of the Foundation Trilogy. The failure to develop a new franchise was partly a reason the studio signed on to produce The Lord of the Rings film trilogy.
On July 29, 2008, New Line Cinema co-founders Bob Shaye and Michael Lynne were reported to have been signed on to produce an adaptation of the trilogy by their company Unique Pictures for Warner Brothers.
However, Columbia Pictures (Sony) successfully bid for the screen rights on January 15, 2009, and then contracted Roland Emmerich to direct and produce. Michael Wimer was named as co-producer.
Two years later, the studio hired Dante Harper to adapt the books. This project failed to materialize and HBO acquired the rights when they became available in 2014.
In November 2014, TheWrap reported that Jonathan Nolan was writing and producing a TV series based on the Foundation Trilogy for HBO. Nolan confirmed his involvement at a Paley Center event on April 13, 2015.