Fixing a broken item found on the road and then making it Waqf

Q 2: I found a broken-down water cooler near the Masjid (mosque), so I fixed it and placed it in front of my house near the Masjid. I intended it to be a Sadaqah Jariyah (ongoing charity) for its first owner, my father, my mother and myself equally. Please tell me: Is this permissible or not?

A: If the water cooler is dedicated to the Masjid or if its owner has intended it to be for the Masjid, you must return it beside it and you will be rewarded for fixing it. However, if the cooler has been discarded and thrown in the street, there is no harm in what you have done. May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.