Some Recommended Books:
John Eastwood, Oxford Guide to English Grammar
A. J. Thomson Av Martinet-A Practical English Grammar-Oxford University Press, USA (1986)
(by-DK)-English-for-Everyone-English-Grammar-Guide- A Comprehensive Visual Reference
More detailed sources:
These books go into detail and are fairly comprehensive, they might be more than you need at the moment and are laden with metalanguage, but good resources nonetheless. Each book is organized differently and presents the information in a different format, find one that works for you.
(Springer Texts in Education) Andrea DeCapua (auth.)-Grammar for Teachers_ A Guide to American English for Native and Non-Native Speakers-Springer International Publishing (2017)
Martin Parrott-Grammar for English Language Teachers -Cambridge University Press (2010)
Ron Cowan-The Teacher's Grammar of English_ A Course Book and Reference Guide, with answers-CUP (2008)
Ronald Carter and Michael McCarthy - Cambridge_ Grammar_of_English_-_A _Comprehensive _Guide
Diane Larsen-Freeman- The Grammar Book
Michael Swan -Practical English Usage
Writing:
Diana Hacker, Rules for Writers/ A Writer”s Reference
The world’s best selling English Book:
Raymond Murphy - English Grammar in Use Book with Answers and Interactive eBook_ A Self-study Reference and Practice Book for Intermediate Learners of English-Cambridge University Press (2019) There exist basic, and advanced levels as well. The series also includes vocabulary in use, collocations in use, phrasal verbs in use which you may also find helpful.
Recommended Websites:
“Library Genesis” is legal to access from Iran, because it’s not a party to the WTO. However, it is not a good time to visit and you may want to consult a lawyer about crossing international boundaries with intellectual property.
https://ell.stackexchange.com/
https://english.stackexchange.com/
Every university with over 10,000 students has a writing center which produces material for its students. If you are looking for paraphrasing material, for example, it might be useful to limit a google search for “paraphrasing writing center university .edu”
here are some examples:
https://www.wlv.ac.uk/lib/skills-for-learning/study-guides/
https://www.waikato.ac.nz/teaching-and-learning/student-learning/study-skills/writing
http://writing.umn.edu/sws/quickhelp/grammar.html
http://writing.umn.edu/sws/multilingual/index.html#mlvideo
https://writingcenter.gmu.edu/writing-resources/wc-quick-guides
http://www-personal.umich.edu/~jlawler/000001.html