The license seems to already require this: https://www.openstreetmap.org/copyright/
Maybe I am misunderstanding the summary, but it says: "If you publicly use any adapted version of this database, or works produced from an adapted database, you must also offer that adapted database under the ODbL." <https://opendatacommons.org/licenses/odbl/summary/>