“I am not going to play football for next 5 months so that I can dedicate my towards studies”.
The grammatically correct way to phrase this sentence is as follows:
“I am not going to play football for the next 5 months so that I can dedicate my (spare) time towards my studies”.
The “spare” here is optional.