Deleted photos from two iphones via icloud
So I bought myself a new iphone 7 and synced it with my icloud account to transfer photos from my old iphone 5. The problem occured when I deleted photos from iphone 5 (so i could give it away) and noticed photos from my iphone 7 were also deleted.
How do I get back my photos?
I want them to be only on my iphone 7.
P.S. They are deleted from the "Deleted photos" album too.
iPhone 5