Diaz and Foxx each shared the news on their Instagram stories.

This is Diaz's first film project since stepping away from her career as an actress. In 2020, she told Gwyneth Paltrow in an interview on \"In Goop Health: The Sessions,\" that she did so to take care of herself.

Foxx and Diaz first shared the news about \"Back in Action\" in 2022, when Foxx shared a phone call they had together. During their conversation, Foxx tapped former NFL quarterback Tom Brady, to share tips on how to \"un-retire\" with Diaz.

\"I'm relatively successful at un-retiring,\" said Brady, who first announced his retirement from the NFL in February 2022, unretired a month later to return to the Tampa Bay Buccaneers, then announced his retirement again \"for good\" after one more season with the team.

\"PHOTO:
Dave J. Hogan/Getty Images, FILE
PHOTO: Jamie Foxx and Cameron Diaz attend a photocall for "Annie" at Corinthia Hotel London on Dec. 16, 2014 in London.
>

\"Honestly… exactly what I needed,\" Diaz told Brady.

\"Back in Action\" will be Diaz's and Foxx's third time starring together in a film. They first starred together in the 1999 film \"Any Given Sunday,\" and in the 2014 film \"Annie.\"

Also starring in the upcoming Seth Gordon directed-movie are Kyle Chandler, Glenn Close, Andrew Scott, Jamie Demetriou, McKenna Roberts and Rylan Jackson.

The film will be available later this year on Netflix.

","canonicalUrl":"https://abcnews.com/GMA/Culture/cameron-diaz-jamie-foxx-play-secret-agents-new/story?id=106882934","legacySlug":"/culture/story/cameron-diaz-jamie-foxx-play-secret-agents-new-106882934","noIndexNoFollow":false},"publishTime":"00:18","publishDate":"02-02-2024","updatedTime":"17:00","updatedDate":"02-02-2024","socialImage":{"alt":"Jamie Foxx and Cameron Diaz attend a photocall for \"Annie\" at Corinthia Hotel London on Dec. 16, 2014 in London.","credit":"Dave J. Hogan/Getty Images, FILE","ratio":"16x9","url":"https://s.abcnews.com/images/GMA/cameron-diaz-jamie-foxx-gty-lv-240201_1706828990604_hpMain_16x9_1600.jpg","width":992,"height":558},"datePublished":"2/2/2024 00:18:00 GMT","video":{"live":false,"id":106882934,"headline":"Cameron Diaz, Jamie Foxx to star in new film","mediaAssetTitle":"CAMERON DIAZ JAMIE FOXX NEW FILM GMA","description":"\"Back in Action\" will be available to stream later this year. ","duration":"1:34","posterImg":{"url":"https://s.abcnews.com/images/GMA/default-img-undefined.png","width":608,"height":342},"video":{"feed":"https://service-pkgabcnews.akamaized.net/opp/hls/abcnews/2022/08/210830_gma_digital_CameronDiazbday1_,500,800,1200,1800,2500,3200,4500,.mp4.csmil/playlist.m3u8"},"playlist":["77965365","72210566","80661467"]},"relatedItems":[{"contentType":"story","date":"June 2, 2021","headline":"Cameron Diaz, Katherine Power explain their winemaking journey with Avaline","section":"food","slug":"/food/story/cameron-diaz-katherine-power-explain-winemaking-journey-avaline-77965365","id":77965365,"image":{"alt":"Cameron Diaz, Katherine Power explain their winemaking journey with Avaline","url":"https://s.abcnews.com/images/GMA/avaline-ht-jt-210601_1622565042960_hpMain_4x3t_240.jpg","credit":"Avaline","ratio":"1x1"}},{"contentType":"story","date":"August 6, 2020","headline":"Cameron Diaz on why she retired from acting","section":"culture","slug":"/culture/story/cameron-diaz-retired-acting-encouraged-mother-72210566","id":72210566,"image":{"alt":"Cameron Diaz on why she retired from acting","url":"https://s.abcnews.com/images/GMA/cameron-diaz-file-gty-ml-200806_1596720343091_hpMain_4x3t_240.jpg","credit":"Jon Kopaloff/FilmMagic/Getty Images, FILE","ratio":"1x1"}},{"contentType":"story","date":"October 19, 2021","headline":"Jamie Foxx opens up on why he has never married","section":"culture","slug":"/culture/story/jamie-foxx-opens-married-affected-kids-80661467","id":80661467,"image":{"alt":"Jamie Foxx opens up on why he has never married","url":"https://s.abcnews.com/images/GMA/jamie-foxx-file-gty-ml-211019_1634650898482_hpMain_4x3t_240.jpg","credit":"Paras Griffin/Getty Images, FILE","ratio":"1x1"}}],"relatedContentSection":"news","schemaContent":{"name":"Cameron Diaz, Jamie Foxx to star in new film","description":"\"Back in Action\" will be available to stream later this year. ","duration":"1:34","uploadDate":"02-02-2024","publication":"02-02-2024","images":"https://s.abcnews.com/images/GMA/default-img-undefined.png","url":"https://service-pkgabcnews.akamaized.net/opp/hls/abcnews/2022/08/210830_gma_digital_CameronDiazbday1_,500,800,1200,1800,2500,3200,4500,.mp4.csmil/playlist.m3u8","contentUrl":"https://service-pkgabcnews.akamaized.net/opp/hls/abcnews/2022/08/210830_gma_digital_CameronDiazbday1_,500,800,1200,1800,2500,3200,4500,.mp4.csmil/playlist.m3u8","link":"https://www.goodmorningamerica.com/culture/story/cameron-diaz-jamie-foxx-play-secret-agents-new-106882934"}},"playlist":[{"id":"133482839","contentType":"story","section":"news"},{"id":"133390157","contentType":"story","section":"news"},{"id":"133415361","contentType":"story","section":"news"},{"id":"133414032","contentType":"story","section":"news"},{"id":"133380485","contentType":"story","section":"news"},{"id":"133358298","contentType":"story","section":"news"},{"id":"133350119","contentType":"story","section":"news"},{"id":"133307515","contentType":"story","section":"news"},{"id":"133307527","contentType":"story","section":"news"},{"id":"133282665","contentType":"story","section":"news"},{"id":"133220149","contentType":"story","section":"news"},{"id":"133179167","contentType":"story","section":"news"},{"id":"133144373","contentType":"story","section":"news"},{"id":"133144059","contentType":"story","section":"news"},{"id":"133143081","contentType":"story","section":"news"},{"id":"133075455","contentType":"story","section":"news"},{"id":"133063114","contentType":"story","section":"news"},{"id":"133063086","contentType":"story","section":"news"},{"id":"133015093","contentType":"story","section":"news"},{"id":"132998564","contentType":"story","section":"news"}],"kvps":{"pgtyp":"article","lang":"en","sp":"goodmorningamerica","programmatic":"true","bundleId":"com.abcnews"}},"analytics":{"accountID":"wdgnewwdgnewgmaweb","ns":"gma","pageName":"gma:culture:video","pageType":"video","globalSpecVersion":"v1.08","siteDifferentiator":"gma:site","tagID":"g_page01","userABCookie":"0","section":"culture","title":"Cameron Diaz, Jamie Foxx to star in new film","pubTime":"19:18","pubDate":"02-01-2024","modTime":"12:00","modDate":"02-02-2024","taxonomyTags":"none","id":106882934,"editorialOtherSubjects":"","wordCount":"none","columns":"none","authors":"","authorsUnit":"none","authorsBureau":"none","subBrand":"Good Morning America","provider":"Good Morning America","videoName":"Cameron Diaz, Jamie Foxx to star in new film","mediaAssetTitle":"CAMERON DIAZ JAMIE FOXX NEW FILM GMA","videoId":106882934,"mediaOnPage":"video","legacySlug":"/culture/story/cameron-diaz-jamie-foxx-play-secret-agents-new-106882934"},"taboola":{}},"request":{"headers":{},"httpVersion":"1.1","method":"GET","url":"/video/106882934","vary":{"host":"www.goodmorningamerica.com","cached":true,"path":"/video/106882934","forwarded-proto":"https","device":"desktop","userab":"0"}},"viewport":{"width":1260,"height":0},"user":{}};